yvoyer /
php-state
| 1 | <?php declare(strict_types=1); |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 2 | |||
| 3 | namespace Star\Component\State; |
||
| 4 | |||
| 5 | final class DuplicateEntryException extends \LogicException |
||
|
0 ignored issues
–
show
|
|||
| 6 | { |
||
|
0 ignored issues
–
show
|
|||
| 7 | 1 | public static function duplicateTransition(string $transition): self |
|
|
0 ignored issues
–
show
|
|||
| 8 | { |
||
|
0 ignored issues
–
show
|
|||
| 9 | 1 | return new self( |
|
| 10 | 1 | \sprintf("The transition '%s' is already registered.", $transition) |
|
| 11 | ); |
||
| 12 | } |
||
|
0 ignored issues
–
show
|
|||
| 13 | } |
||
|
0 ignored issues
–
show
|
|||
| 14 |