Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class NotValidUrlException extends Exception |
||
22 | { |
||
23 | 14 | public function __construct(?string $url) |
|
30 | 14 | } |
|
31 | |||
32 | 14 | protected function value(?string $url): string |
|
33 | { |
||
34 | 14 | if (! empty($url)) { |
|
35 | 7 | return 'The "' . $url . '"'; |
|
36 | } |
||
37 | |||
38 | 7 | return 'Empty string'; |
|
39 | } |
||
40 | |||
41 | 14 | protected function message(string $value): string |
|
44 | } |
||
45 | } |
||
46 |