PHP Class Kraken\Channel\Router\RouterComposite

Inheritance: implements Kraken\Channel\Router\RouterCompositeInterface
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$bus RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[]

Public Methods

Method Description
__construct ( RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[] $bus = [] )
__destruct ( )
addDefault ( callable $handler, $propagate = false, $limit )
addRule ( callable $matcher, callable $handler, $propagate = false, $limit )
erase ( )
existsBus ( $name )
getBus ( $name )
getBuses ( )
handle ( $name, Kraken\Channel\Protocol\ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout )
removeBus ( $name )
setBus ( $name, $router )

Method Details

__construct() public method

public __construct ( RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[] $bus = [] )
$bus RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[]

__destruct() public method

public __destruct ( )

addDefault() public method

public addDefault ( callable $handler, $propagate = false, $limit )
$handler callable

addRule() public method

public addRule ( callable $matcher, callable $handler, $propagate = false, $limit )
$matcher callable
$handler callable

erase() public method

public erase ( )

existsBus() public method

public existsBus ( $name )

getBus() public method

public getBus ( $name )

getBuses() public method

public getBuses ( )

handle() public method

public handle ( $name, Kraken\Channel\Protocol\ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout )
$protocol Kraken\Channel\Protocol\ProtocolInterface
$success callable
$failure callable
$cancel callable

removeBus() public method

public removeBus ( $name )

setBus() public method

public setBus ( $name, $router )

Property Details

$bus protected property

protected RouterInterface[]|RouterCompositeInterface[],Kraken\Channel\Router $bus
return RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[]