1 | <?php |
||
13 | class MarketModel extends Model |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $id; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $name; |
||
24 | |||
25 | /** |
||
26 | * @var MarketModelPrices |
||
27 | */ |
||
28 | protected $prices; |
||
29 | |||
30 | /** |
||
31 | * @var MarketModelOffers |
||
32 | */ |
||
33 | protected $offers; |
||
34 | |||
35 | /** |
||
36 | * @var int |
||
37 | */ |
||
38 | protected $offlineOffers; |
||
39 | |||
40 | /** |
||
41 | * @var int |
||
42 | */ |
||
43 | protected $onlineOffers; |
||
44 | |||
45 | protected $mappingClasses = [ |
||
46 | 'prices' => MarketModelPrices::class, |
||
47 | 'offers' => MarketModelOffers::class, |
||
48 | ]; |
||
49 | |||
50 | /** |
||
51 | * Retrieve the id property |
||
52 | * |
||
53 | * @return int |
||
54 | */ |
||
55 | 5 | public function getId() |
|
59 | |||
60 | /** |
||
61 | * Set the id property |
||
62 | * |
||
63 | * @param int $id |
||
64 | * @return MarketModel |
||
65 | */ |
||
66 | public function setId($id) |
||
71 | |||
72 | /** |
||
73 | * Get name |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | 3 | public function getName() |
|
81 | |||
82 | /** |
||
83 | * Set name |
||
84 | * |
||
85 | * @param string $name |
||
86 | * @return MarketModel |
||
87 | */ |
||
88 | public function setName($name) |
||
93 | |||
94 | /** |
||
95 | * Get model prices |
||
96 | * |
||
97 | * @return MarketModelPrices|null |
||
98 | */ |
||
99 | 3 | public function getPrices() |
|
103 | |||
104 | /** |
||
105 | * Set model prices |
||
106 | * |
||
107 | * @param MarketModelPrices $prices |
||
108 | * @return MarketModel |
||
109 | */ |
||
110 | public function setPrices($prices) |
||
115 | |||
116 | /** |
||
117 | * Get model offers |
||
118 | * |
||
119 | * @return MarketModelOffers|null |
||
120 | */ |
||
121 | 2 | public function getOffers() |
|
125 | |||
126 | /** |
||
127 | * Set model offers |
||
128 | * |
||
129 | * @param MarketModelOffers $offers |
||
130 | * @return MarketModel |
||
131 | */ |
||
132 | public function setOffers($offers) |
||
137 | |||
138 | /** |
||
139 | * Get number of product offerings int the retail (offline) stores |
||
140 | * |
||
141 | * @return int|null |
||
142 | */ |
||
143 | public function getOfflineOffers() |
||
147 | |||
148 | /** |
||
149 | * Set number of product offerings in retail (offline) stores |
||
150 | * |
||
151 | * @param int $offlineOffers |
||
152 | * @return MarketModel |
||
153 | */ |
||
154 | public function setOfflineOffers($offlineOffers) |
||
159 | |||
160 | /** |
||
161 | * Get the number of product offerings online |
||
162 | * |
||
163 | * @return int|null |
||
164 | */ |
||
165 | public function getOnlineOffers() |
||
169 | |||
170 | /** |
||
171 | * Set the number of product offerings online |
||
172 | * |
||
173 | * @param int $onlineOffers |
||
174 | * @return MarketModel |
||
175 | */ |
||
176 | public function setOnlineOffers($onlineOffers) |
||
181 | } |
||
182 |