1 | <?php |
||
16 | class PatternRule implements ConstraintMapperInterface |
||
17 | { |
||
18 | const RULE_NAME = 'pattern'; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private $enabled; |
||
24 | |||
25 | public function __construct($enabled) |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function resolve(Constraint $constraint, FormInterface $form, RuleCollection $collection) |
||
50 | |||
51 | public function supports(Constraint $constraint, FormInterface $form) |
||
55 | } |
||
56 |