PHP Class Neos\Flow\Aop\Pointcut\PointcutClassTypeFilter

Inheritance: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$interfaceOrClassName string An interface name to match class types
$isInterface boolean If the type specified by the expression is an interface (or class)
$reflectionService Neos\Flow\Reflection\ReflectionService

Public Methods

Method Description
__construct ( string $interfaceOrClassName ) The constructor - initializes the class type filter with the class or interface name
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
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified class matches with the class type filter
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.

Method Details

__construct() public method

The constructor - initializes the class type filter with the class or interface name
public __construct ( string $interfaceOrClassName )
$interfaceOrClassName string Interface or a class name to match against

getRuntimeEvaluationsDefinition() public method

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

hasRuntimeEvaluationsDefinition() public method

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

injectReflectionService() public method

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

matches() public method

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

reduceTargetClassNames() public method

This method is used to optimize the matching process.
public reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex neos\flow\aop\builder\ClassNameIndex
return neos\flow\aop\builder\ClassNameIndex

Property Details

$interfaceOrClassName protected_oe property

An interface name to match class types
protected string $interfaceOrClassName
return string

$isInterface protected_oe property

If the type specified by the expression is an interface (or class)
protected bool $isInterface
return boolean

$reflectionService protected_oe property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
return Neos\Flow\Reflection\ReflectionService