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