PHP Class Go\Aop\Pointcut\MagicMethodPointcut

Inheritance: implements Go\Aop\MethodMatcher, implements Go\Aop\Pointcut, use trait PointcutClassFilterTrait
Afficher le fichier Open project: goaop/framework Class Usage Examples

Protected Properties

Свойство Type Description
$methodName string Method name to match, can contain wildcards *,?
$modifierFilter Go\Aop\PointFilter Modifier filter for method
$regexp string Regular expression for matching

Méthodes publiques

Méthode Description
__construct ( string $methodName, Go\Aop\PointFilter $modifierFilter = null ) Magic method 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 méthode

NB: only public methods can be matched as __call and __callStatic are public
public __construct ( string $methodName, Go\Aop\PointFilter $modifierFilter = null )
$methodName string Name of the dynamic method to match or glob pattern
$modifierFilter Go\Aop\PointFilter Method modifier filter (static or not)

getKind() public méthode

Returns the kind of point filter
public getKind ( ) : integer
Résultat integer

matches() public méthode

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
Résultat boolean

Property Details

$methodName protected_oe property

Method name to match, can contain wildcards *,?
protected string $methodName
Résultat string

$modifierFilter protected_oe property

Modifier filter for method
protected PointFilter,Go\Aop $modifierFilter
Résultat Go\Aop\PointFilter

$regexp protected_oe property

Regular expression for matching
protected string $regexp
Résultat string