| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 57.14% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class RegexConstraint implements ConstraintInterface |
||
| 8 | { |
||
| 9 | private string $pattern; |
||
| 10 | private string $message; |
||
| 11 | |||
| 12 | public function __construct(string $pattern, string $message = "This value does not match the required pattern.") |
||
| 16 | } |
||
| 17 | |||
| 18 | 1 | public function validate($value): ?string |
|
| 25 | } |
||
| 26 | } |