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

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

Traverses all aspect containers and returns an array of property introductions which match the target class.
protected getMatchingPropertyIntroductions ( array &$aspectContainers, string $targetClassName ) : array | PropertyIntroduction[]
$aspectContainers array
$targetClassName string Name of the class the pointcut should match with
Результат array | Neos\Flow\Aop\PropertyIntroduction[] array of property introductions
    protected function getMatchingPropertyIntroductions(array &$aspectContainers, $targetClassName)
    {
        $introductions = [];
        foreach ($aspectContainers as $aspectContainer) {
            if (!$aspectContainer->getCachedTargetClassNameCandidates()->hasClassName($targetClassName)) {
                continue;
            }
            foreach ($aspectContainer->getPropertyIntroductions() as $introduction) {
                $pointcut = $introduction->getPointcut();
                if ($pointcut->matches($targetClassName, null, null, uniqid())) {
                    $introductions[] = $introduction;
                }
            }
        }
        return $introductions;
    }