| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
| 21 | { |
||
| 22 | $metadata->addPropertyConstraint('llegada', new Assert\Valid()); |
||
| 23 | $metadata->addPropertyConstraint('partida', new Assert\Valid()); |
||
| 24 | $metadata->addPropertyConstraint('transportista', new Assert\Valid()); |
||
| 25 | $metadata->addPropertyConstraint('nroLicencia', new Assert\Length(['max' => 30])); |
||
| 26 | $metadata->addPropertyConstraint('transpPlaca', new Assert\Length(['max' => 10])); |
||
| 27 | $metadata->addPropertyConstraint('transpCodeAut', new Assert\Length(['max' => 50])); |
||
| 28 | $metadata->addPropertyConstraint('transpMarca', new Assert\Length(['max' => 50])); |
||
| 29 | $metadata->addPropertyConstraint('modTraslado', new Assert\Length(['min' => 2, 'max' => 2])); |
||
| 30 | $metadata->addPropertyConstraint('pesoBruto', new Assert\Type('numeric')); |
||
| 31 | $metadata->addPropertyConstraint('undPesoBruto', new Assert\Length(['max' => 4])); |
||
| 32 | } |
||
| 33 | } |