Neos\Flow\Aop\Builder\ProxyClassBuilder::addIntroducedMethodsToInterceptedMethods PHP Method

addIntroducedMethodsToInterceptedMethods() protected method

Traverses all methods which were introduced by interfaces and adds them to the intercepted methods array if they didn't exist already.
protected addIntroducedMethodsToInterceptedMethods ( array &$interceptedMethods, array $methodsFromIntroducedInterfaces ) : void
$interceptedMethods array
$methodsFromIntroducedInterfaces array An array of class and method names from introduced interfaces
return void
    protected function addIntroducedMethodsToInterceptedMethods(array &$interceptedMethods, array $methodsFromIntroducedInterfaces)
    {
        foreach ($methodsFromIntroducedInterfaces as $interfaceAndMethodName) {
            list($interfaceName, $methodName) = $interfaceAndMethodName;
            if (!isset($interceptedMethods[$methodName])) {
                $interceptedMethods[$methodName]['groupedAdvices'] = [];
                $interceptedMethods[$methodName]['declaringClassName'] = $interfaceName;
            }
        }
    }