protected function buildSavedConstructorParametersCode(string $className = null): string
    {
        if ($className === null) {
            return '';
        }

        $parametersCode = '';
        $methodParameters = $this->reflectionService->getMethodParameters($className, '__construct');
        $methodParametersCount = count($methodParameters);
        if ($methodParametersCount > 0) {
            foreach ($methodParameters as $methodParameterName => $methodParameterInfo) {
                $methodParametersCount--;
                $parametersCode .= '$this->Flow_Aop_Proxy_originalConstructorArguments[\'' . $methodParameterName . '\']' . ($methodParametersCount > 0 ? ', ' : '');
            }
        }
        return $parametersCode;
    }
protected function buildSavedConstructorParametersCode(string $className = null): string
    {
        if ($className === null) {
            return '';
        }

        $parametersCode = '';
        $methodParameters = $this->reflectionService->getMethodParameters($className, '__construct');
        $methodParametersCount = count($methodParameters);
        if ($methodParametersCount > 0) {
            foreach ($methodParameters as $methodParameterName => $methodParameterInfo) {
                $methodParametersCount--;
                $parametersCode .= '$this->Flow_Aop_Proxy_originalConstructorArguments[\'' . $methodParameterName . '\']' . ($methodParametersCount > 0 ? ', ' : '');
            }
        }
        return $parametersCode;
    }
protected function buildSavedConstructorParametersCode ( string $ className = null ) : string { if ( $ className === null ) { return '' ; } $ parametersCode = '' ; $ methodParameters = $ this -> reflectionService -> getMethodParameters ( $ className , '__construct' ) ; $ methodParametersCount = count ( $ methodParameters ) ; if ( $ methodParametersCount > 0 ) { foreach ( $ methodParameters as $ methodParameterName => $ methodParameterInfo ) { $ methodParametersCount -- ; $ parametersCode .= '$this->Flow_Aop_Proxy_originalConstructorArguments[\'' . $ methodParameterName . '\']' . ( $ methodParametersCount > 0 ? ', ' : '' ) ; } } return $ parametersCode ; }
Generates the parameters code needed to call the constructor with the saved parameters.

@param string $className Name of the class the method is declared in
@return string The generated parameters code
Generates the parameters code needed to call the constructor with the saved parameters .