PHP Class Go\Aop\Pointcut\FunctionPointcut

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

Protected Properties

Property Type Description
$functionName string Function name to match, can contain wildcards *,?
$nsFilter Go\Aop\PointFilter
$regexp string Regular expression for matching

Public Methods

Method 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 method

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

getClassFilter() public method

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

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 $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
return boolean

setNamespaceFilter() public method

public setNamespaceFilter ( $nsFilter )

Property Details

$functionName protected_oe property

Function name to match, can contain wildcards *,?
protected string $functionName
return string

$nsFilter protected_oe property

protected PointFilter,Go\Aop $nsFilter
return Go\Aop\PointFilter

$regexp protected_oe property

Regular expression for matching
protected string $regexp
return string