PHP Класс Go\Aop\Pointcut\FunctionPointcut

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

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

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