PHP Class Alterway\Component\Workflow\Node

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

Public Methods

Method Description
__construct ( $name )
addTransition ( Node $dst, Alterway\Component\Workflow\SpecificationInterface $spec ) : Node Adds a transition.
getName ( ) : string Returns the current node's name.
getOpenTransitions ( Alterway\Component\Workflow\ContextInterface $context ) : array Returns the opened transitions.

Method Details

__construct() public method

public __construct ( $name )

addTransition() public method

Adds a transition.
public addTransition ( Node $dst, Alterway\Component\Workflow\SpecificationInterface $spec ) : Node
$dst Node
$spec Alterway\Component\Workflow\SpecificationInterface
return Node

getName() public method

Returns the current node's name.
public getName ( ) : string
return string

getOpenTransitions() public method

Returns the opened transitions.
public getOpenTransitions ( Alterway\Component\Workflow\ContextInterface $context ) : array
$context Alterway\Component\Workflow\ContextInterface
return array