PHP Class Metabor\Statemachine\Exception\WrongEventForStateException

Inheritance: extends RuntimeException
Show file Open project: metabor/statemachine

Protected Properties

Property Type Description
$eventName string The event that was triggered.
$stateName string The subject's current state.

Public Methods

Method Description
__construct ( string $stateName, string $eventName, integer $code, Exception $previous = null )
getEventName ( )
getStateName ( )

Method Details

__construct() public method

public __construct ( string $stateName, string $eventName, integer $code, Exception $previous = null )
$stateName string
$eventName string
$code integer
$previous Exception

getEventName() public method

public getEventName ( )

getStateName() public method

public getStateName ( )

Property Details

$eventName protected property

The event that was triggered.
protected string $eventName
return string

$stateName protected property

The subject's current state.
protected string $stateName
return string