| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 3 | public function resolve(Constraint $constraint, FormInterface $form, RuleCollection $collection) |
|
| 34 | { |
||
| 35 | 3 | if (!$this->supports($constraint, $form)) { |
|
| 36 | 2 | throw new LogicException(); |
|
| 37 | } |
||
| 38 | |||
| 39 | /** @var Iban $constraint */ |
||
| 40 | 1 | $collection->set( |
|
| 41 | 1 | self::RULE_NAME, |
|
| 42 | 1 | new ConstraintRule( |
|
| 43 | 1 | self::RULE_NAME, |
|
| 44 | 1 | true, |
|
| 45 | 1 | new RuleMessage($constraint->message), |
|
| 46 | 1 | $constraint->groups |
|
| 47 | 1 | ) |
|
| 48 | 1 | ); |
|
| 49 | 1 | } |
|
| 50 | |||
| 56 |