PHP Class Metabor\Event\Dispatcher

Author: Oliver Tischlinger
Inheritance: implements MetaborStd\Event\DispatcherInterface
Afficher le fichier Open project: metabor/statemachine

Méthodes publiques

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

Méthodes protégées

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

Method Details

__invoke() public méthode

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

addCommand() protected méthode

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

addEvent() protected méthode

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

dispatch() public méthode

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

protected getCommands ( ) : array
Résultat array

isReady() public méthode

public isReady ( ) : boolean
Résultat boolean

removeCommand() protected méthode

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