Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | final class FieldName extends Constraint |
||
11 | { |
||
12 | public const ERROR_MESSAGE = 'validation.pagination.fieldName.invalid'; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | public string $message = self::ERROR_MESSAGE; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | public string $pattern = '#^[a-z0-9_\.]+$#i'; |
||
23 | |||
24 | /** |
||
25 | * @return string[] |
||
26 | */ |
||
27 | public function getTargets(): array |
||
32 |