PHP Class Alterway\Component\Workflow\Transition

Show file Open project: alterway/component-workflow

Public Methods

Method Description
__construct ( Node $src, Node $dst, Alterway\Component\Workflow\SpecificationInterface $spec )
getDestination ( ) : Node Returns the destination of the current transition.
isOpen ( Alterway\Component\Workflow\ContextInterface $context ) : boolean Checks if the current transition satisfies the specifiation on the given context.

Method Details

__construct() public method

public __construct ( Node $src, Node $dst, Alterway\Component\Workflow\SpecificationInterface $spec )
$src Node
$dst Node
$spec Alterway\Component\Workflow\SpecificationInterface

getDestination() public method

Returns the destination of the current transition.
public getDestination ( ) : Node
return Node

isOpen() public method

Checks if the current transition satisfies the specifiation on the given context.
public isOpen ( Alterway\Component\Workflow\ContextInterface $context ) : boolean
$context Alterway\Component\Workflow\ContextInterface
return boolean