Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
51 | View Code Duplication | public function getValidationConstraints() |
|
52 | { |
||
53 | return new Assert\Collection([ |
||
54 | 'code' => new Assert\Required([ |
||
55 | new Assert\NotBlank(), |
||
56 | new Code() |
||
57 | ]), |
||
58 | 'country' => new Assert\Required([ |
||
59 | new Assert\NotBlank(), |
||
60 | ]), |
||
61 | ]); |
||
62 | } |
||
63 | |||
73 |
Adding a
@return
annotation 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.