1 | <?php declare(strict_types=1); |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
2 | /** |
||
0 ignored issues
–
show
|
|||
3 | * This file is part of the php-state project. |
||
4 | * |
||
5 | * (c) Yannick Voyer <[email protected]> (http://github.com/yvoyer) |
||
6 | */ |
||
0 ignored issues
–
show
|
|||
7 | |||
8 | namespace Star\Component\State; |
||
9 | |||
10 | final class NotFoundException extends \Exception |
||
0 ignored issues
–
show
|
|||
11 | { |
||
0 ignored issues
–
show
|
|||
12 | 1 | public static function stateNotFound(string $name): self |
|
0 ignored issues
–
show
|
|||
13 | { |
||
0 ignored issues
–
show
|
|||
14 | 1 | return new self(\sprintf("The state '%s' could not be found.", $name)); |
|
15 | } |
||
0 ignored issues
–
show
|
|||
16 | |||
17 | 2 | public static function transitionNotFound(string $name): self |
|
0 ignored issues
–
show
|
|||
18 | { |
||
0 ignored issues
–
show
|
|||
19 | 2 | return new self(sprintf("The transition '%s' could not be found.", $name)); |
|
20 | } |
||
0 ignored issues
–
show
|
|||
21 | } |
||
0 ignored issues
–
show
|
|||
22 |