PHP Class Metabor\Statemachine\Exception\WrongEventForStateException

Inheritance: extends RuntimeException
Mostra 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_oe property

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

$stateName protected_oe property

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