Issues (1124)

src/NotFoundException.php (1 issue)

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