| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 12 |
| Ratio | 100 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | 1 | View Code Duplication | public function getValidationConstraints() |
| 52 | { |
||
| 53 | 1 | return new Assert\Collection([ |
|
| 54 | 1 | 'code' => new Assert\Required([ |
|
| 55 | 1 | new Assert\NotBlank(), |
|
| 56 | 1 | new Code() |
|
| 57 | ]), |
||
| 58 | 1 | 'country' => new Assert\Required([ |
|
| 59 | 1 | new Assert\NotBlank(), |
|
| 60 | ]), |
||
| 61 | ]); |
||
| 62 | } |
||
| 63 | |||
| 73 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.