PHP Класс Kahlan\Plugin\Call\Message

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_args array Message arguments.
$_classes array Class dependencies.
$_name string Message name.
$_parent mixed Parent instance.
$_reference mixed Message reference.
$_static boolean Static call.

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

Метод Описание
__construct ( array $config = [] ) The Constructor.
args ( ) : array Get message arguments.
isStatic ( ) : boolean Check if the method is a static method.
match ( array $call, boolean $withArgs = true ) : boolean Check if this message is compatible with passed call array.
matchArgs ( array $args ) : boolean Check if this stub is compatible with passed args.
name ( ) : string Get message name.
parent ( ) : mixed Get the parent.
reference ( ) : mixed Get the message reference.
where ( $requirements = [] ) : self Set arguments requirement indexed by method name.
with ( ) : self Set arguments requirement.

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

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

The Constructor.
public __construct ( array $config = [] )
$config array Possible options are: - `'reference'` _mixed_ : The message reference. - `'name'` _string_ : The message name. - `'args'` _array_ : The message arguments. - `'static'` _boolean_: `true` if the method is static, `false` otherwise.

args() публичный Метод

Get message arguments.
public args ( ) : array
Результат array

isStatic() публичный Метод

Check if the method is a static method.
public isStatic ( ) : boolean
Результат boolean

match() публичный Метод

Check if this message is compatible with passed call array.
public match ( array $call, boolean $withArgs = true ) : boolean
$call array A call array.
$withArgs boolean Boolean indicating if matching should take arguments into account.
Результат boolean

matchArgs() публичный Метод

Check if this stub is compatible with passed args.
public matchArgs ( array $args ) : boolean
$args array The passed arguments.
Результат boolean

name() публичный Метод

Get message name.
public name ( ) : string
Результат string

parent() публичный Метод

Get the parent.
public parent ( ) : mixed
Результат mixed

reference() публичный Метод

Get the message reference.
public reference ( ) : mixed
Результат mixed

where() публичный Метод

Set arguments requirement indexed by method name.
public where ( $requirements = [] ) : self
Результат self

with() публичный Метод

Set arguments requirement.
public with ( ) : self
Результат self

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

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

Message arguments.
protected array $_args
Результат array

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

Class dependencies.
protected array $_classes
Результат array

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

Message name.
protected string $_name
Результат string

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

Parent instance.
protected mixed $_parent
Результат mixed

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

Message reference.
protected mixed $_reference
Результат mixed

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

Static call.
protected bool $_static
Результат boolean