Neos\Flow\ObjectManagement\Proxy\ProxyConstructor::buildCallParentMethodCode PHP Метод

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

Builds PHP code which calls the original (ie. parent) method after the added code has been executed.
protected buildCallParentMethodCode ( string $fullClassName, string $methodName ) : string
$fullClassName string Fully qualified name of the original class
$methodName string Name of the original method
Результат string PHP code
    protected function buildCallParentMethodCode($fullClassName, $methodName)
    {
        if (!$this->reflectionService->hasMethod($fullClassName, $methodName)) {
            return '';
        }
        if (count($this->reflectionService->getMethodParameters($this->fullOriginalClassName, $this->methodName)) > 0) {
            return "        call_user_func_array('parent::" . $methodName . "', \$arguments);\n";
        } else {
            return "        parent::" . $methodName . "();\n";
        }
    }