PHP 클래스 Go\Aop\Pointcut\MagicMethodPointcut

상속: implements Go\Aop\MethodMatcher, implements Go\Aop\Pointcut, use trait PointcutClassFilterTrait
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$methodName string Method name to match, can contain wildcards *,?
$modifierFilter Go\Aop\PointFilter Modifier filter for method
$regexp string Regular expression for matching

공개 메소드들

메소드 설명
__construct ( string $methodName, Go\Aop\PointFilter $modifierFilter = null ) Magic method matcher constructor
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

메소드 상세

__construct() 공개 메소드

NB: only public methods can be matched as __call and __callStatic are public
public __construct ( string $methodName, Go\Aop\PointFilter $modifierFilter = null )
$methodName string Name of the dynamic method to match or glob pattern
$modifierFilter Go\Aop\PointFilter Method modifier filter (static or not)

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

프로퍼티 상세

$methodName 보호되어 있는 프로퍼티

Method name to match, can contain wildcards *,?
protected string $methodName
리턴 string

$modifierFilter 보호되어 있는 프로퍼티

Modifier filter for method
protected PointFilter,Go\Aop $modifierFilter
리턴 Go\Aop\PointFilter

$regexp 보호되어 있는 프로퍼티

Regular expression for matching
protected string $regexp
리턴 string