| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 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 | } |
||
| 27 | |||
| 73 |