PHP Class Go\Aop\Support\ModifierMatcherFilter

Inheritance: implements Go\Aop\PointFilter
Show file Open project: goaop/framework Class Usage Examples

Protected Properties

Property Type Description
$andMask integer Bit mask, that should be always match
$notMask integer Bit mask to exclude specific value from matching, for example, !public
$orMask integer Bit mask, that can be used for additional check

Public Methods

Method Description
__construct ( integer $initialMask ) Initialize default filter with "and" mask
andMatch ( integer $bitMask ) Add "and" or mask
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
merge ( ModifierMatcherFilter $filter ) : ModifierMatcherFilter Merges current one filter with another one and returns a new combined filter
notMatch ( integer $bitMask ) Add "not" mask
orMatch ( integer $bitMask ) Add "or" mask

Method Details

__construct() public method

Initialize default filter with "and" mask
public __construct ( integer $initialMask )
$initialMask integer Default mask for "and"

andMatch() public method

Add "and" or mask
public andMatch ( integer $bitMask )
$bitMask integer

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

merge() public method

Merges current one filter with another one and returns a new combined filter
public merge ( ModifierMatcherFilter $filter ) : ModifierMatcherFilter
$filter ModifierMatcherFilter
return ModifierMatcherFilter

notMatch() public method

Add "not" mask
public notMatch ( integer $bitMask )
$bitMask integer

orMatch() public method

Add "or" mask
public orMatch ( integer $bitMask )
$bitMask integer

Property Details

$andMask protected property

Bit mask, that should be always match
protected int $andMask
return integer

$notMask protected property

Bit mask to exclude specific value from matching, for example, !public
protected int $notMask
return integer

$orMask protected property

Bit mask, that can be used for additional check
protected int $orMask
return integer