Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class TargetException extends \RuntimeException |
||
22 | { |
||
23 | 3 | protected function __construct(string $message) |
|
24 | { |
||
25 | 3 | parent::__construct($message); |
|
26 | } |
||
27 | |||
28 | 1 | public static function alreadyExists(string $target): self |
|
29 | { |
||
30 | 1 | return new self(\sprintf("Target '%s' already exists.", $target)); |
|
31 | } |
||
32 | |||
33 | 1 | public static function doesNotExist(string $target): self |
|
34 | { |
||
35 | 1 | return new self(\sprintf("Target '%s' does not exist.", $target)); |
|
36 | } |
||
37 | |||
38 | 1 | public static function noneExist(): self |
|
41 | } |
||
42 | } |
||
43 |