1 | <?php |
||
9 | class OrderItem |
||
10 | { |
||
11 | /** |
||
12 | * @var string|null |
||
13 | */ |
||
14 | private $name; |
||
15 | |||
16 | /** |
||
17 | * @var float|null |
||
18 | */ |
||
19 | private $value; |
||
20 | |||
21 | /** |
||
22 | * @var integer|null |
||
23 | */ |
||
24 | private $count; |
||
25 | |||
26 | /** |
||
27 | * @var float|null |
||
28 | */ |
||
29 | private $weight; |
||
30 | |||
31 | /** |
||
32 | * @var string|null |
||
33 | */ |
||
34 | private $category; |
||
35 | |||
36 | /** |
||
37 | * @return string|null |
||
38 | */ |
||
39 | public function getName() |
||
43 | |||
44 | /** |
||
45 | * @param string|null $name |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function setName(string $name = null) |
||
54 | |||
55 | /** |
||
56 | * @return float|null |
||
57 | */ |
||
58 | public function getValue() |
||
62 | |||
63 | /** |
||
64 | * @param float|null $value |
||
65 | * @return $this |
||
66 | */ |
||
67 | public function setValue(float $value = null) |
||
73 | |||
74 | /** |
||
75 | * @return int|null |
||
76 | */ |
||
77 | public function getCount() |
||
81 | |||
82 | /** |
||
83 | * @param int|null $count |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function setCount(int $count = null) |
||
92 | |||
93 | /** |
||
94 | * @return float|null |
||
95 | */ |
||
96 | public function getWeight() |
||
100 | |||
101 | /** |
||
102 | * @param float|null $weight |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setWeight(float $weight = null) |
||
111 | |||
112 | /** |
||
113 | * @return string|null |
||
114 | */ |
||
115 | public function getCategory() |
||
119 | |||
120 | /** |
||
121 | * @param string|null $category |
||
122 | * @return $this |
||
123 | */ |
||
124 | public function setCategory(string $category = null) |
||
130 | } |
||
131 |