| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
| 21 | { |
||
| 22 | $metadata->addPropertyConstraints('codUnidadMedida', [ |
||
| 23 | new Assert\NotBlank(), |
||
| 24 | new Assert\Length(['max' => 3]), |
||
| 25 | ]); |
||
| 26 | $metadata->addPropertyConstraints('desItem', [ |
||
| 27 | new Assert\NotBlank(), |
||
| 28 | new Assert\Length(['max' => 250]), |
||
| 29 | ]); |
||
| 30 | $metadata->addPropertyConstraint('mtoValorUnitario', new Assert\NotBlank()); |
||
| 31 | $metadata->addPropertyConstraint('mtoIgvItem', new Assert\NotBlank()); |
||
| 32 | $metadata->addPropertyConstraint('tipAfeIgv', new Assert\NotBlank()); |
||
| 33 | $metadata->addPropertyConstraint('mtoPrecioUnitario', new Assert\NotBlank()); |
||
| 34 | $metadata->addPropertyConstraint('mtoValorVenta', new Assert\NotBlank()); |
||
| 35 | } |
||
| 36 | } |