Total Complexity | 7 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class Url implements ValidateRuleInterface |
||
6 | { |
||
7 | /** |
||
8 | * Validates the value as a URL. |
||
9 | * |
||
10 | * The value must match a generic URL format; for example, ``http://example.com``, ``mms://example.org``, and so on. |
||
11 | * |
||
12 | * @param object $subject The subject to be filtered. |
||
13 | * @param string $field The subject field name. |
||
14 | * |
||
15 | * @return bool True if valid, false if not. |
||
16 | */ |
||
17 | 42 | public function __invoke($subject, string $field): bool |
|
47 |