PHP Class Kraken\Channel\Router\RouterRule

Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Protected Properties

Свойство Type Description
$cancelled boolean
$handler callable
$limit integer
$matcher callable
$pointer array | null
$propagate boolean
$router RouterInterface

Méthodes publiques

Méthode Description
__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 )

Method Details

__construct() public méthode

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 méthode

public __destruct ( )

cancel() public méthode

Remove this handler.
public cancel ( )

getRouter() public méthode

Return Router to which handler is attached to.
public getRouter ( ) : RouterInterface
Résultat RouterInterface

handle() public méthode

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
Résultat boolean

match() public méthode

Match given message protocol.
public match ( string $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean
$sender string
$protocol Kraken\Channel\Protocol\ProtocolInterface
Résultat boolean

setPointer() public méthode

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

Property Details

$cancelled protected_oe property

protected bool $cancelled
Résultat boolean

$handler protected_oe property

protected callable $handler
Résultat callable

$limit protected_oe property

protected int $limit
Résultat integer

$matcher protected_oe property

protected callable $matcher
Résultat callable

$pointer protected_oe property

protected array|null $pointer
Résultat array | null

$propagate protected_oe property

protected bool $propagate
Résultat boolean

$router protected_oe property

protected RouterInterface $router
Résultat RouterInterface