| Total Complexity | 4 | 
| Total Lines | 22 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 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 | public function validate($value): ?string  | 
            ||
| 29 | }  | 
            ||
| 30 | }  |