| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 22 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
| 21 | { |
||
| 22 | 22 | $metadata->addPropertyConstraints('codReg', [ |
|
| 23 | 22 | new Assert\NotBlank(), |
|
| 24 | 22 | new Assert\Length([ |
|
| 25 | 22 | 'min' => 2, |
|
| 26 | 22 | 'max' => 2, |
|
| 27 | 22 | ]), |
|
| 28 | 22 | ]); |
|
| 29 | 22 | $metadata->addPropertyConstraint('mtoBase', new Assert\NotBlank()); |
|
| 30 | 22 | $metadata->addPropertyConstraint('mto', new Assert\NotBlank()); |
|
| 31 | 22 | $metadata->addPropertyConstraint('mtoTotal', new Assert\NotBlank()); |
|
| 32 | } |
||
| 33 | } |