PHP 클래스 Go\Core\AdviceMatcher

파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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