PHP Класс Kraken\Channel\Router\RouterRule

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

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

Свойство Тип Описание
$cancelled boolean
$handler callable
$limit integer
$matcher callable
$pointer array | null
$propagate boolean
$router RouterInterface

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

Метод Описание
__construct ( RouterInterface $router, callable $matcher, callable $handler, boolean $propagate = false, integer $limit )
__destruct ( )
cancel ( ) Remove this handler.
getRouter ( ) : RouterInterface Return Router to which handler is attached to.
handle ( string $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol, integer $flags, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout ) : boolean Handle given message protocol.
match ( string $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean Match given message protocol.
setPointer ( string $stack, integer $pointer )

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

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

public __construct ( RouterInterface $router, callable $matcher, callable $handler, boolean $propagate = false, integer $limit )
$router RouterInterface
$matcher callable
$handler callable
$propagate boolean
$limit integer

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

public __destruct ( )

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

Remove this handler.
public cancel ( )

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

Return Router to which handler is attached to.
public getRouter ( ) : RouterInterface
Результат RouterInterface

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

Handle given message protocol.
public handle ( string $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol, integer $flags, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout ) : boolean
$sender string
$protocol Kraken\Channel\Protocol\ProtocolInterface
$flags integer
$success callable
$failure callable
$cancel callable
$timeout float
Результат boolean

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

Match given message protocol.
public match ( string $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean
$sender string
$protocol Kraken\Channel\Protocol\ProtocolInterface
Результат boolean

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

public setPointer ( string $stack, integer $pointer )
$stack string
$pointer integer

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

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

protected bool $cancelled
Результат boolean

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

protected callable $handler
Результат callable

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

protected int $limit
Результат integer

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

protected callable $matcher
Результат callable

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

protected array|null $pointer
Результат array | null

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

protected bool $propagate
Результат boolean

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

protected RouterInterface $router
Результат RouterInterface