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