Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class CouldNotPerformTransition extends Exception |
||
9 | { |
||
10 | public static function notAllowed(Model $model, $transitionClass): CouldNotPerformTransition |
||
11 | { |
||
12 | $modelClass = get_class($model); |
||
13 | |||
14 | $transitionClass = get_class($transitionClass); |
||
15 | |||
16 | return TransitionNotAllowed::make($modelClass, $transitionClass); |
||
17 | } |
||
18 | |||
19 | public static function notFound(string $from, string $to, Model $model): CouldNotPerformTransition |
||
24 | } |
||
25 | |||
26 | public static function couldNotResolveTransitionField(Model $model): CouldNotPerformTransition |
||
33 |