PHP Класс Go\Aop\Support\ModifierMatcherFilter

Наследование: implements Go\Aop\PointFilter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный метод

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

andMatch() публичный метод

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

getKind() публичный метод

Returns the kind of point filter
public getKind ( ) : integer
Результат integer

matches() публичный метод

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
Результат boolean

merge() публичный метод

Merges current one filter with another one and returns a new combined filter
public merge ( ModifierMatcherFilter $filter ) : ModifierMatcherFilter
$filter ModifierMatcherFilter
Результат ModifierMatcherFilter

notMatch() публичный метод

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

orMatch() публичный метод

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

Описание свойств

$andMask защищенное свойство

Bit mask, that should be always match
protected int $andMask
Результат integer

$notMask защищенное свойство

Bit mask to exclude specific value from matching, for example, !public
protected int $notMask
Результат integer

$orMask защищенное свойство

Bit mask, that can be used for additional check
protected int $orMask
Результат integer