Neos\Flow\Aop\Builder\ProxyClassBuilder::buildMethodsInterceptorCode PHP Метод

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

The generated code is added directly to the proxy class by calling the respective methods of the Compiler API.
protected buildMethodsInterceptorCode ( string $targetClassName, array $interceptedMethods ) : void
$targetClassName string The target class the pointcut should match with
$interceptedMethods array An array of method names which need to be intercepted
Результат void
    protected function buildMethodsInterceptorCode($targetClassName, array $interceptedMethods)
    {
        foreach ($interceptedMethods as $methodName => $methodMetaInformation) {
            if (count($methodMetaInformation['groupedAdvices']) === 0) {
                throw new Aop\Exception\VoidImplementationException(sprintf('Refuse to introduce method %s into target class %s because it has no implementation code. You might want to create an around advice which implements this method.', $methodName, $targetClassName), 1303224472);
            }
            $builderType = 'Adviced' . ($methodName === '__construct' ? 'Constructor' : 'Method');
            $this->methodInterceptorBuilders[$builderType]->build($methodName, $interceptedMethods, $targetClassName);
        }
    }