PHP 클래스 Go\Aop\Support\ModifierMatcherFilter

상속: implements Go\Aop\PointFilter
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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