PHP Class Alterway\Component\Workflow\Builder

Show file Open project: alterway/component-workflow Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
getWorkflow ( ) : Workflow Returns the workflow being built.
link ( string $src, string $dst, Alterway\Component\Workflow\SpecificationInterface $spec ) : Builder Adds a link to the workflow.
open ( string $src, Alterway\Component\Workflow\SpecificationInterface $spec ) : Builder Opens a workflow.

Method Details

__construct() public method

public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

getWorkflow() public method

Returns the workflow being built.
public getWorkflow ( ) : Workflow
return Workflow

open() public method

Opens a workflow.
public open ( string $src, Alterway\Component\Workflow\SpecificationInterface $spec ) : Builder
$src string
$spec Alterway\Component\Workflow\SpecificationInterface
return Builder