| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class LessThanFactory implements TranslatableFactoryInterface |
||
| 11 | { |
||
| 12 | use FactoryTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @inheritdoc |
||
| 16 | */ |
||
| 17 | 1 | public function create(SymfonyConstraint $constraint): Constraint |
|
| 18 | { |
||
| 19 | /** @var Assert\LessThan $constraint */ |
||
| 20 | |||
| 21 | 1 | return new ParsleyAssert\LessThan([ |
|
| 22 | 1 | 'value' => $constraint->value, |
|
| 23 | 1 | 'message' => $this->trans($constraint->message, ['{{ compared_value }}' => $constraint->value]), |
|
| 24 | ]); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @inheritdoc |
||
| 29 | */ |
||
| 30 | 1 | public function supports(SymfonyConstraint $constraint): bool |
|
| 33 | } |
||
| 34 | } |
||
| 35 |