Свойство | Тип | Описание | |
---|---|---|---|
$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 ) |
public getRouter ( ) : RouterInterface | ||
Результат | RouterInterface |
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 |
public setPointer ( string $stack, integer $pointer ) | ||
$stack | string | |
$pointer | integer |