PHP Class raoul2000\workflow\base\Transition

Inheritance: extends WorkflowBaseObject, implements raoul2000\workflow\base\TransitionInterface
Show file Open project: raoul2000/yii2-workflow Class Usage Examples

Public Methods

Method Description
__construct ( array $config = [] ) Creates a Transition object.
getEndStatus ( )
getId ( ) : string Returns the id of this transition.
getStartStatus ( )

Method Details

__construct() public method

To create a new Transition, you should provide following mandatory values in the configuration array $config : - **start** : the start Status instance - **end** : the end Status instance
See also: Status
public __construct ( array $config = [] )
$config array

getEndStatus() public method

See also: raoul2000\workflow\base\TransitionInterface::getEndStatus()
public getEndStatus ( )

getId() public method

The id is built by concatenating the start and the end status Ids, separated with character '-'. For instance, a transition between status A and B has an idea equals to "A-B".
See also: raoul2000\workflow\base\WorkflowBaseObject::getId()
public getId ( ) : string
return string the transition Id

getStartStatus() public method

See also: raoul2000\workflow\base\TransitionInterface::getStartStatus()
public getStartStatus ( )