PointcutClassNameFilter
class PointcutClassNameFilter implements PointcutFilterInterface (View source)
A simple class filter which fires on class names defined by a regular expression
Properties
protected ReflectionService | $reflectionService | ||
protected string | $classFilterExpression | A regular expression to match class names |
|
protected string | $originalExpressionString |
Methods
The constructor - initializes the class filter with the class filter expression
Checks if the specified class matches with the class filter pattern
Returns true if this filter holds runtime evaluations for a previously matched pointcut
Returns runtime evaluations for the pointcut.
This method is used to optimize the matching process.
Details
__construct(string $classFilterExpression)
The constructor - initializes the class filter with the class filter expression
void
injectReflectionService(ReflectionService $reflectionService)
Injects the reflection service
bool
matches(string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier)
Checks if the specified class matches with the class filter pattern
bool
hasRuntimeEvaluationsDefinition()
Returns true if this filter holds runtime evaluations for a previously matched pointcut
array
getRuntimeEvaluationsDefinition()
Returns runtime evaluations for the pointcut.
ClassNameIndex
reduceTargetClassNames(ClassNameIndex $classNameIndex)
This method is used to optimize the matching process.