PHP 클래스 Go\Aop\Pointcut\FunctionPointcut

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

보호된 프로퍼티들

프로퍼티 타입 설명
$functionName string Function name to match, can contain wildcards *,?
$nsFilter Go\Aop\PointFilter
$regexp string Regular expression for matching

공개 메소드들

메소드 설명
__construct ( string $functionName ) Function matcher constructor
getClassFilter ( ) : Go\Aop\PointFilter Return the class filter for this pointcut.
getKind ( ) : integer Returns the kind of point filter
matches ( mixed $function, mixed $context = null, null | string | object $instance = null, array $arguments = null ) : boolean Performs matching of point of code
setNamespaceFilter ( $nsFilter )

메소드 상세

__construct() 공개 메소드

Function matcher constructor
public __construct ( string $functionName )
$functionName string Name of the function to match or glob pattern

getClassFilter() 공개 메소드

Return the class filter for this pointcut.
public getClassFilter ( ) : Go\Aop\PointFilter
리턴 Go\Aop\PointFilter

getKind() 공개 메소드

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

matches() 공개 메소드

Performs matching of point of code
public matches ( mixed $function, mixed $context = null, null | string | object $instance = null, array $arguments = null ) : boolean
$function mixed Specific part of code, can be any Reflection class
$context 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

setNamespaceFilter() 공개 메소드

public setNamespaceFilter ( $nsFilter )

프로퍼티 상세

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

Function name to match, can contain wildcards *,?
protected string $functionName
리턴 string

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

protected PointFilter,Go\Aop $nsFilter
리턴 Go\Aop\PointFilter

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

Regular expression for matching
protected string $regexp
리턴 string