Neos\Flow\Aop\Builder\AbstractMethodInterceptorBuilder::buildSavedConstructorParametersCode PHP Метод

buildSavedConstructorParametersCode() защищенный Метод

Generates the parameters code needed to call the constructor with the saved parameters.
protected buildSavedConstructorParametersCode ( string $className ) : string
$className string Name of the class the method is declared in
Результат string The generated parameters code
    protected function buildSavedConstructorParametersCode($className)
    {
        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;
    }