PointcutClassTypeFilter
class PointcutClassTypeFilter implements PointcutFilterInterface (View source)
A class type filter which fires on class or interface names
Properties
protected ReflectionService | $reflectionService | ||
protected string | $interfaceOrClassName | An interface name to match class types |
|
protected bool | $isInterface | If the type specified by the expression is an interface (or class) |
Methods
The constructor - initializes the class type filter with the class or interface name
Checks if the specified class matches with the class type filter
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 $interfaceOrClassName)
The constructor - initializes the class type filter with the class or interface name
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 type filter
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.