Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
17 | 1 | public function create(SymfonyConstraint $constraint): Constraint |
|
18 | { |
||
19 | /** @var Assert\GreaterThan $constraint */ |
||
20 | |||
21 | 1 | return new ParsleyAssert\GreaterThanOrEqual([ |
|
22 | 1 | 'value' => $constraint->value, |
|
23 | 1 | 'message' => $this->trans($constraint->message, ['{{ compared_value }}' => $constraint->value]), |
|
24 | ]); |
||
35 |