Metabor\Statemachine\Util\SetupHelper::addCommand PHP Method

addCommand() public method

If there is no Transition from the SourceState with this Event use addCommandAndSelfTransition().
public addCommand ( $sourceStateName, string $eventName, SplObserver $command )
$sourceStateName
$eventName string
$command SplObserver
    public function addCommand($sourceStateName, $eventName, \SplObserver $command)
    {
        $this->findOrCreateEvent($sourceStateName, $eventName)->attach($command);
    }