PHP Класс Go\Core\AdviceMatcher

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$loader AspectLoader Loader of aspects

Открытые методы

Метод Описание
__construct ( AspectLoader $loader, boolean $isInterceptFunctions = false ) Constructor
getAdvicesForClass ( ReflectionClas\ReflectionClass $class, array $advisors ) : array | Go\Aop\Advice[] Return list of advices for class
getAdvicesForFunctions ( Go\ParserReflection\ReflectionFileNamespace $namespace, array $advisors ) : array Returns list of function advices for namespace

Приватные методы

Метод Описание
getAdvicesFromAdvisor ( ReflectionClas\ReflectionClass $class, Go\Aop\PointcutAdvisor $advisor, string $advisorId, Go\Aop\PointFilter $filter ) : array Returns list of advices from advisor and point filter
getFunctionAdvicesFromAdvisor ( Go\ParserReflection\ReflectionFileNamespace $namespace, Go\Aop\PointcutAdvisor $advisor, string $advisorId, Go\Aop\PointFilter $pointcut ) : array Returns list of function advices for specific namespace
getIntroductionFromAdvisor ( ReflectionClas\ReflectionClass $class, Go\Aop\IntroductionAdvisor $advisor, string $advisorId ) : array Returns list of introduction advices from advisor

Описание методов

__construct() публичный Метод

Constructor
public __construct ( AspectLoader $loader, boolean $isInterceptFunctions = false )
$loader AspectLoader Instance of aspect loader
$isInterceptFunctions boolean Optional flag to enable function interception

getAdvicesForClass() публичный Метод

Return list of advices for class
public getAdvicesForClass ( ReflectionClas\ReflectionClass $class, array $advisors ) : array | Go\Aop\Advice[]
$class ReflectionClas\ReflectionClass Class to advise
$advisors array List of advisor to match
Результат array | Go\Aop\Advice[] List of advices for class

getAdvicesForFunctions() публичный Метод

Returns list of function advices for namespace
public getAdvicesForFunctions ( Go\ParserReflection\ReflectionFileNamespace $namespace, array $advisors ) : array
$namespace Go\ParserReflection\ReflectionFileNamespace
$advisors array List of advisor to match
Результат array

Описание свойств

$loader защищенное свойство

Loader of aspects
protected AspectLoader,Go\Core $loader
Результат AspectLoader