PHP Class Go\Aop\Pointcut\SignaturePointcut

Inheritance: implements Go\Aop\Pointcut, use trait PointcutClassFilterTrait
Datei anzeigen Open project: goaop/framework Class Usage Examples

Protected Properties

Property Type Description
$filterKind integer Filter kind
$modifierFilter Go\Aop\PointFilter Modifier filter for element
$name string Element name to match, can contain wildcards **,*,?,|
$regexp string Regular expression for pattern matching

Public Methods

Method Description
__construct ( integer $filterKind, string $name, Go\Aop\PointFilter $modifierFilter ) Signature matcher constructor
getKind ( ) : integer Returns the kind of point filter
matches ( mixed $point, null | mixed $context = null, null | string | object $instance = null, array $arguments = null ) : boolean Performs matching of point of code

Method Details

__construct() public method

Signature matcher constructor
public __construct ( integer $filterKind, string $name, Go\Aop\PointFilter $modifierFilter )
$filterKind integer Kind of filter, e.g. KIND_CLASS
$name string Name of the entity to match or glob pattern
$modifierFilter Go\Aop\PointFilter Method modifier filter

getKind() public method

Returns the kind of point filter
public getKind ( ) : integer
return integer

matches() public method

Performs matching of point of code
public matches ( mixed $point, null | mixed $context = null, null | string | object $instance = null, array $arguments = null ) : boolean
$point mixed Specific part of code, can be any Reflection class
$context null | mixed Related context, can be class or namespace
$instance null | string | object Invocation instance or string for static calls
$arguments array Dynamic arguments for method
return boolean

Property Details

$filterKind protected_oe property

Filter kind
protected int $filterKind
return integer

$modifierFilter protected_oe property

Modifier filter for element
protected PointFilter,Go\Aop $modifierFilter
return Go\Aop\PointFilter

$name protected_oe property

Element name to match, can contain wildcards **,*,?,|
protected string $name
return string

$regexp protected_oe property

Regular expression for pattern matching
protected string $regexp
return string