PHP Interface Kraken\Console\Client\ClientInterface

Inheritance: extends Kraken\Runtime\RuntimeContextInterface, extends Kraken\Core\CoreSetterAwareInterface, extends Kraken\Loop\LoopExtendedAwareInterface
Show file Open project: kraken-php/framework

Public Methods

Method Description
onCommand ( callable $callback ) : EventListener Attach command event handler.
onStart ( callable $callback ) : EventListener Attach start event handler.
onStop ( callable $callback ) : EventListener Attach stop event handler.
start ( ) Start Client
stop ( ) Stop Client

Method Details

onCommand() public method

Attach command event handler.
public onCommand ( callable $callback ) : EventListener
$callback callable
return Kraken\Event\EventListener

onStart() public method

Attach start event handler.
public onStart ( callable $callback ) : EventListener
$callback callable
return Kraken\Event\EventListener

onStop() public method

Attach stop event handler.
public onStop ( callable $callback ) : EventListener
$callback callable
return Kraken\Event\EventListener

start() public method

Start Client
public start ( )

stop() public method

Stop Client
public stop ( )