1 | <?php |
||
14 | class Item |
||
15 | { |
||
16 | use SerializerTrait; |
||
17 | |||
18 | /** |
||
19 | * @Serializer\XmlElement(cdata=false) |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | private $id; |
||
24 | |||
25 | /** |
||
26 | * @Serializer\XmlElement(cdata=false) |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private $description; |
||
31 | |||
32 | /** |
||
33 | * @Serializer\XmlElement(cdata=false) |
||
34 | * |
||
35 | * @var float |
||
36 | */ |
||
37 | private $amount; |
||
38 | |||
39 | /** |
||
40 | * @Serializer\Type("integer") |
||
41 | * |
||
42 | * @var int |
||
43 | */ |
||
44 | private $quantity; |
||
45 | |||
46 | /** |
||
47 | * @Serializer\XmlElement(cdata=false) |
||
48 | * |
||
49 | * @var float |
||
50 | */ |
||
51 | private $shippingCost; |
||
52 | |||
53 | /** |
||
54 | * @Serializer\Type("integer") |
||
55 | * |
||
56 | * @var int |
||
57 | */ |
||
58 | private $weight; |
||
59 | |||
60 | /** |
||
61 | * @param string $id |
||
62 | * @param string $description |
||
63 | * @param float $amount |
||
64 | * @param int $quantity |
||
65 | * @param float $shippingCost |
||
66 | * @param int $weight |
||
67 | */ |
||
68 | 8 | public function __construct( |
|
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | 4 | public function getId() |
|
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | 4 | public function getDescription() |
|
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | 4 | public function getAmount() |
|
107 | |||
108 | /** |
||
109 | * @return number |
||
110 | */ |
||
111 | 4 | public function getQuantity() |
|
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | 4 | public function getShippingCost() |
|
123 | |||
124 | /** |
||
125 | * @return number |
||
126 | */ |
||
127 | 4 | public function getWeight() |
|
131 | } |
||
132 |