1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the Neutrino package. |
||
5 | * |
||
6 | * (c) Vasil Dakov <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace VasilDakov\Speedy\Model; |
||
15 | |||
16 | use Doctrine\Common\Collections\ArrayCollection; |
||
17 | use JMS\Serializer\Annotation as Serializer; |
||
18 | |||
19 | /** |
||
20 | * Class CourierService. |
||
21 | * |
||
22 | * @author Vasil Dakov <[email protected]> |
||
23 | * @copyright 2009-2023 Neutrino.bg |
||
24 | * |
||
25 | * @version 1.0 |
||
26 | * |
||
27 | * @Serializer\AccessType("public_method") |
||
28 | */ |
||
29 | class CourierService |
||
30 | { |
||
31 | /** |
||
32 | * Courier service id. |
||
33 | * |
||
34 | * @Serializer\Type("integer") |
||
35 | */ |
||
36 | private int $id; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
37 | |||
38 | /** |
||
39 | * Courier service name in local language. |
||
40 | * |
||
41 | * @Serializer\Type("string") |
||
42 | */ |
||
43 | private string $name; |
||
0 ignored issues
–
show
|
|||
44 | |||
45 | /** |
||
46 | * Courier service name in English. |
||
47 | * |
||
48 | * @Serializer\Type("string") |
||
49 | */ |
||
50 | private string $nameEn; |
||
0 ignored issues
–
show
|
|||
51 | |||
52 | /** |
||
53 | * Additional services options. |
||
54 | * |
||
55 | * @Serializer\Type("ArrayCollection") |
||
56 | */ |
||
57 | private ArrayCollection $additionalServices; |
||
0 ignored issues
–
show
|
|||
58 | |||
59 | /** |
||
60 | * Cargo type. |
||
61 | * |
||
62 | * @Serializer\Type("string") |
||
63 | */ |
||
64 | private string $cargoType; |
||
0 ignored issues
–
show
|
|||
65 | |||
66 | /** |
||
67 | * Require weight for each parcel on create shipment. |
||
68 | * |
||
69 | * @Serializer\Type("bool") |
||
70 | */ |
||
71 | private bool $requireParcelWeight; |
||
0 ignored issues
–
show
|
|||
72 | |||
73 | /** |
||
74 | * Require size for each parcel on create shipment. |
||
75 | * |
||
76 | * @Serializer\Type("bool") |
||
77 | */ |
||
78 | private bool $requireParcelSize; |
||
0 ignored issues
–
show
|
|||
79 | } |
||
80 |