PHP 클래스 Neos\Flow\Aop\Pointcut\PointcutMethodAnnotatedWithFilter

상속: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$annotation The tag of an annotation to match against
$annotationValueConstraints array
$reflectionService Neos\Flow\Reflection\ReflectionService
$systemLogger Neos\Flow\Log\SystemLoggerInterface

공개 메소드들

메소드 설명
__construct ( string $annotation, array $annotationValueConstraints = [] ) The constructor - initializes the method annotation filter with the expected annotation class
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for the pointcut.
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
injectReflectionService ( ReflectionService $reflectionService ) : void Injects the reflection service
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified method matches with the method annotation filter pattern
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.

메소드 상세

__construct() 공개 메소드

The constructor - initializes the method annotation filter with the expected annotation class
public __construct ( string $annotation, array $annotationValueConstraints = [] )
$annotation string An annotation class (for example "Neos\Flow\Annotations\Lazy") which defines which method annotations should match
$annotationValueConstraints array

getRuntimeEvaluationsDefinition() 공개 메소드

Returns runtime evaluations for the pointcut.
public getRuntimeEvaluationsDefinition ( ) : array
리턴 array Runtime evaluations

hasRuntimeEvaluationsDefinition() 공개 메소드

Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
public hasRuntimeEvaluationsDefinition ( ) : boolean
리턴 boolean TRUE if this filter has runtime evaluations

injectReflectionService() 공개 메소드

Injects the reflection service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService The reflection service
리턴 void

injectSystemLogger() 공개 메소드

public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
리턴 void

matches() 공개 메소드

Checks if the specified method matches with the method annotation filter pattern
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean
$className string Name of the class to check against - not used here
$methodName string Name of the method
$methodDeclaringClassName string Name of the class the method was originally declared in
$pointcutQueryIdentifier mixed Some identifier for this query - must at least differ from a previous identifier. Used for circular reference detection - not used here
리턴 boolean TRUE if the class matches, otherwise FALSE

reduceTargetClassNames() 공개 메소드

This method is used to optimize the matching process.
public reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex Neos\Flow\Aop\Builder\ClassNameIndex
리턴 Neos\Flow\Aop\Builder\ClassNameIndex

프로퍼티 상세

$annotation 보호되어 있는 프로퍼티

The tag of an annotation to match against
protected $annotation

$annotationValueConstraints 보호되어 있는 프로퍼티

protected array $annotationValueConstraints
리턴 array

$reflectionService 보호되어 있는 프로퍼티

protected ReflectionService,Neos\Flow\Reflection $reflectionService
리턴 Neos\Flow\Reflection\ReflectionService

$systemLogger 보호되어 있는 프로퍼티

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface