Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public static function make(string $from, string $to, string $modelClass): self |
||
21 | { |
||
22 | return (new static("Transition from `{$from}` to `{$to}` on model `{$modelClass}` was not found, did you forget to register it in `{$modelClass}::registerStates()`?")) |
||
23 | ->setFrom($from) |
||
24 | ->setTo($to) |
||
25 | ->setModelClass($modelClass); |
||
26 | } |
||
73 |