Metabor\Statemachine\Transition::__construct PHP Method

__construct() public method

public __construct ( MetaborStd\Statemachine\StateInterface $targetState, string $eventName = null, MetaborStd\Statemachine\ConditionInterface $condition = null )
$targetState MetaborStd\Statemachine\StateInterface
$eventName string
$condition MetaborStd\Statemachine\ConditionInterface
    public function __construct(StateInterface $targetState, $eventName = null, ConditionInterface $condition = null)
    {
        $this->targetState = $targetState;
        $this->eventName = $eventName;
        $this->condition = $condition;
    }