| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class NotValidUrlException extends Exception |
||
| 8 | { |
||
| 9 | 14 | public function __construct(?string $url) |
|
| 16 | 14 | } |
|
| 17 | |||
| 18 | 14 | protected function value(?string $url): string |
|
| 19 | { |
||
| 20 | 14 | if (! empty($url)) { |
|
| 21 | 6 | return 'The "' . $url . '"'; |
|
| 22 | } |
||
| 23 | |||
| 24 | 8 | return 'Empty string'; |
|
| 25 | } |
||
| 26 | |||
| 27 | 14 | protected function message(string $value): string |
|
| 30 | } |
||
| 31 | } |
||
| 32 |