src/Exceptions/IllegalEnumTransitionException.php
<?php
namespace Henzeb\Enumhancer\Exceptions;
use UnitEnum;
class IllegalEnumTransitionException extends EnumException
{
public function __construct(UnitEnum $from, UnitEnum $transitionTo)
{
parent::__construct(
sprintf('Transition from `%s` to `%s` is not allowed!', $from->name, $transitionTo->name)
);
}
}