The base State Interface
TYPE_INITIAL |
|
TYPE_NORMAL |
|
TYPE_FINAL |
|
string |
getName()
Returns the state name |
|
boolean |
isInitial()
Returns if this state is the initial state |
|
mixed |
isFinal()
Returns if this state is the final state |
|
mixed |
isNormal()
Returns if this state is a normal state (!($this->isInitial() || $this->isFinal()) |
|
string |
getType()
Returns the state type |
|
array |
getTransitions()
Returns the available transitions |
|
boolean |
can( string| TransitionInterface $transition)
Returns if this state can run $transition |
|
boolean | has( string $property) | |
mixed | get( string $property) | |
mixed |
getProperties()
Returns optional state properties |
public string
getName()
Returns the state name
Return Value |
|
---|
public boolean
isInitial()
Returns if this state is the initial state
Return Value |
|
---|
public mixed
isFinal()
Returns if this state is the final state
Return Value |
|
---|
public mixed
isNormal()
Returns if this state is a normal state (!($this->isInitial() | $this->isFinal()) |
Return Value |
|
---|
public string
getType()
Returns the state type
Return Value |
|
---|
public array
getTransitions()
Returns the available transitions
Return Value |
|
---|
public boolean
can( string| TransitionInterface $transition)
Returns if this state can run $transition
Parameters |
|
|||
---|---|---|---|---|
Return Value |
|
public boolean
has( string $property)
Parameters |
|
|||
---|---|---|---|---|
Return Value |
|
public mixed
get( string $property)
Parameters |
|
|||
---|---|---|---|---|
Return Value |
|
public mixed
getProperties()
Returns optional state properties
Return Value |
|
---|