Method | Description | |
---|---|---|
__construct ( string $start ) | Constructor. Starts in named state. | |
enter ( string $state ) | Adds a state to the stack and sets it to be the current state. | |
getCurrent ( ) : string | Accessor for current state. | |
leave ( ) : boolean | Leaves the current state and reverts to the previous one. |
public __construct ( string $start ) | ||
$start | string | Starting state name. |
public getCurrent ( ) : string | ||
return | string | State. |