Class Transition
Transition object is an oriented link between a start and an end status.
-
yii\base\Object
-
raoul2000\workflow\base\WorkflowBaseObject
-
raoul2000\workflow\base\Transition
implements
raoul2000\workflow\base\TransitionInterface
Methods summary
public
|
#
__construct( array $config = [] )
Creates a Transition object.
Creates a Transition object.
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
Parameters
Throws
yii\base\InvalidConfigException
See
Overrides
|
public
string
|
#
getId( )
Returns the id of this transition.
Returns the id of this transition.
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".
Returns
string the transition Id
See
Implementation of
|
public
raoul2000\workflow\base\StatusInterface
|
#
getEndStatus( )
Returns
See
Implementation of
|
public
raoul2000\workflow\base\StatusInterface
|
#
getStartStatus( )
Returns
See
Implementation of
|