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

__construct() public method

public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
    public function __construct(EventDispatcherInterface $eventDispatcher = null)
    {
        $this->eventDispatcher = $eventDispatcher ?: new EventDispatcher();
        $this->nodes = new NodeMap();
        $this->start = null;
    }