PHP Class Metabor\Event\Dispatcher

Author: Oliver Tischlinger
Inheritance: implements MetaborStd\Event\DispatcherInterface
Datei anzeigen Open project: metabor/statemachine

Public Methods

Method Description
__invoke ( )
dispatch ( MetaborStd\Event\EventInterface $event, array $arguments = [], MetaborStd\CallbackInterface $onReadyCallback = null )
isReady ( ) : boolean

Protected Methods

Method Description
addCommand ( callable $command, array $arguments )
addEvent ( MetaborStd\Event\EventInterface $event, array $arguments )
getCommands ( ) : array
removeCommand ( callable $command, array $arguments )

Method Details

__invoke() public method

See also: MetaborStd\CallbackInterface::__invoke()
public __invoke ( )

addCommand() protected method

protected addCommand ( callable $command, array $arguments )
$command callable
$arguments array

addEvent() protected method

protected addEvent ( MetaborStd\Event\EventInterface $event, array $arguments )
$event MetaborStd\Event\EventInterface
$arguments array

dispatch() public method

See also: MetaborStd\Event\DispatcherInterface::dispatch()
public dispatch ( MetaborStd\Event\EventInterface $event, array $arguments = [], MetaborStd\CallbackInterface $onReadyCallback = null )
$event MetaborStd\Event\EventInterface
$arguments array
$onReadyCallback MetaborStd\CallbackInterface

getCommands() protected method

protected getCommands ( ) : array
return array

isReady() public method

public isReady ( ) : boolean
return boolean

removeCommand() protected method

protected removeCommand ( callable $command, array $arguments )
$command callable
$arguments array