| 1 | <?php |
||
| 30 | class MatchValidatorAnnotation extends ValidatorAnnotation |
||
| 31 | { |
||
| 32 | |||
| 33 | use AllowEmpty; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string the regular expression to be matched with |
||
| 37 | */ |
||
| 38 | public $pattern = NULL; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var boolean whether to invert the validation logic. Defaults to false. If set to true, |
||
| 42 | * the regular expression defined via {@link pattern} should NOT match the attribute value. |
||
| 43 | * @since 1.1.5 |
||
| 44 | * */ |
||
| 45 | public $not = false; |
||
| 46 | |||
| 47 | public function init() |
||
| 63 | |||
| 64 | } |
||
| 65 |