PHP Class Go\Aop\Support\SimpleNamespaceFilter

Namespace name can contain wildcards '*', '**' and '?'
Inheritance: implements Go\Aop\PointFilter
Datei anzeigen Open project: goaop/framework

Protected Properties

Property Type Description
$nsName string Namespace name to match, can contain wildcards *,?
$regexp string Pattern for regular expression matching

Public Methods

Method Description
__construct ( string $namespaceName ) Namespace name matcher constructor
getKind ( ) : integer Returns the kind of point filter
matches ( Go\ParserReflection\ReflectionFileNamespace | string $ns, $context = null, $instance = null, array $arguments = null )

Method Details

__construct() public method

Namespace name matcher constructor
public __construct ( string $namespaceName )
$namespaceName string Name of the namespace to match or glob pattern

getKind() public method

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

matches() public method

public matches ( Go\ParserReflection\ReflectionFileNamespace | string $ns, $context = null, $instance = null, array $arguments = null )
$ns Go\ParserReflection\ReflectionFileNamespace | string
$arguments array

Property Details

$nsName protected_oe property

Namespace name to match, can contain wildcards *,?
protected string $nsName
return string

$regexp protected_oe property

Pattern for regular expression matching
protected string $regexp
return string