Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 2 | public function guard($value, ...$other): void |
|
20 | { |
||
21 | 2 | parent::guard($value); |
|
22 | /** @var ValueObjectInterface $value*/ |
||
23 | 2 | if (filter_var($value->getValue(), FILTER_VALIDATE_URL) === false) { |
|
24 | 1 | throw new InvalidVOArgumentException('Value is not a valid url address.', $value); |
|
25 | } |
||
38 |