PHP Class Go\Aop\Pointcut\FunctionPointcut

Inheritance: implements Go\Aop\Pointcut
Afficher le fichier Open project: goaop/framework Class Usage Examples

Protected Properties

Свойство Type Description
$functionName string Function name to match, can contain wildcards *,?
$nsFilter Go\Aop\PointFilter
$regexp string Regular expression for matching

Méthodes publiques

Méthode Description
__construct ( string $functionName ) Function matcher constructor
getClassFilter ( ) : Go\Aop\PointFilter Return the class filter for this pointcut.
getKind ( ) : integer Returns the kind of point filter
matches ( mixed $function, mixed $context = null, null | string | object $instance = null, array $arguments = null ) : boolean Performs matching of point of code
setNamespaceFilter ( $nsFilter )

Method Details

__construct() public méthode

Function matcher constructor
public __construct ( string $functionName )
$functionName string Name of the function to match or glob pattern

getClassFilter() public méthode

Return the class filter for this pointcut.
public getClassFilter ( ) : Go\Aop\PointFilter
Résultat Go\Aop\PointFilter

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 $function, mixed $context = null, null | string | object $instance = null, array $arguments = null ) : boolean
$function mixed Specific part of code, can be any Reflection class
$context 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

setNamespaceFilter() public méthode

public setNamespaceFilter ( $nsFilter )

Property Details

$functionName protected_oe property

Function name to match, can contain wildcards *,?
protected string $functionName
Résultat string

$nsFilter protected_oe property

protected PointFilter,Go\Aop $nsFilter
Résultat Go\Aop\PointFilter

$regexp protected_oe property

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