Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class Word implements ValidateRuleInterface |
||
6 | { |
||
7 | /** |
||
8 | * Validates that the value is composed only of word characters (letters,numbers, and underscores). |
||
9 | * |
||
10 | * @param object $subject The subject to be filtered. |
||
11 | * @param string $field The subject field name. |
||
12 | * |
||
13 | * @return bool True if valid, false if not. |
||
14 | */ |
||
15 | 39 | public function __invoke($subject, string $field): bool |
|
25 |