Alterway\Component\Workflow\Workflow::__construct PHP Method

__construct() public method

public __construct ( Node $start, NodeMap $nodes, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$start Node
$nodes NodeMap
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
    public function __construct(Node $start, NodeMap $nodes, EventDispatcherInterface $eventDispatcher)
    {
        $this->start = $start;
        $this->nodes = $nodes;
        $this->eventDispatcher = $eventDispatcher;
        $this->current = null;
    }