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

getWorkflow() public method

Returns the workflow being built.
public getWorkflow ( ) : Workflow
return Workflow
    public function getWorkflow()
    {
        if (null === $this->start) {
            throw new Exception\NoStartingNodeBuilderException();
        }
        return new Workflow($this->start, $this->nodes, $this->eventDispatcher);
    }