Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class TransitionNotAllowed extends CouldNotPerformTransition implements ProvidesSolution |
||
10 | { |
||
11 | /** @var string */ |
||
12 | protected $transitionClass; |
||
13 | |||
14 | public static function make(string $modelClass, string $transitionClass): self |
||
15 | { |
||
16 | return (new static("The transition `{$transitionClass}` is not allowed on model `{$modelClass}` at the moment.")) |
||
17 | ->setTransitionClass($transitionClass); |
||
18 | } |
||
19 | |||
20 | public function setTransitionClass(string $transitionClass): self |
||
25 | } |
||
26 | |||
27 | public function getSolution(): Solution |
||
33 | ]); |
||
34 | } |
||
36 |