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

@param array &$interceptedMethods An array (empty or not) which contains the names of the intercepted methods and additional information
@param array $methodsFromIntroducedInterfaces An array of class and method names from introduced interfaces
@return void
Traverses all methods which were introduced by interfaces and adds them to the intercepted methods array if they didn t exist already .