Metabor\Statemachine\Exception\WrongEventForStateException::__construct PHP Method

__construct() public method

public __construct ( string $stateName, string $eventName, integer $code, Exception $previous = null )
$stateName string
$eventName string
$code integer
$previous Exception
    public function __construct($stateName, $eventName, $code = 0, \Exception $previous = null)
    {
        $this->stateName = $stateName;
        $this->eventName = $eventName;
        $message = 'Current state "' . $stateName . '" doesn\'t have event "' . $eventName . '"';
        parent::__construct($message, $code, $previous);
    }