1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Guillermoandrae\Highrise\Models; |
4
|
|
|
|
5
|
|
|
use DateTime; |
6
|
|
|
|
7
|
|
|
final class DealModel extends AbstractModel |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* The ID. |
11
|
|
|
* |
12
|
|
|
* @var integer |
13
|
|
|
*/ |
14
|
|
|
protected $id; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* The account ID. |
18
|
|
|
* |
19
|
|
|
* @var integer |
20
|
|
|
*/ |
21
|
|
|
protected $accountId; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* The author ID. |
25
|
|
|
* |
26
|
|
|
* @var integer |
27
|
|
|
*/ |
28
|
|
|
protected $authorId; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* The category ID. |
32
|
|
|
* |
33
|
|
|
* @var integer |
34
|
|
|
*/ |
35
|
|
|
protected $categoryId; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* The group ID. |
39
|
|
|
* |
40
|
|
|
* @var integer |
41
|
|
|
*/ |
42
|
|
|
protected $groupId; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* The owner ID. |
46
|
|
|
* |
47
|
|
|
* @var integer |
48
|
|
|
*/ |
49
|
|
|
protected $ownerId; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* The party ID. |
53
|
|
|
* |
54
|
|
|
* @var integer |
55
|
|
|
*/ |
56
|
|
|
protected $partyId; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* The responsible party ID. |
60
|
|
|
* |
61
|
|
|
* @var integer |
62
|
|
|
*/ |
63
|
|
|
protected $responsiblePartyId; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* The background. |
67
|
|
|
* |
68
|
|
|
* @var string |
69
|
|
|
*/ |
70
|
|
|
protected $background; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* The currency. |
74
|
|
|
* |
75
|
|
|
* @var string |
76
|
|
|
*/ |
77
|
|
|
protected $currency; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* The duration. |
81
|
|
|
* |
82
|
|
|
* @var integer |
83
|
|
|
*/ |
84
|
|
|
protected $duration; |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* The price. |
88
|
|
|
* |
89
|
|
|
* @var integer |
90
|
|
|
*/ |
91
|
|
|
protected $price; |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* The price type. |
95
|
|
|
* |
96
|
|
|
* @var string |
97
|
|
|
*/ |
98
|
|
|
protected $priceType; |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* The status. |
102
|
|
|
* |
103
|
|
|
* @var string |
104
|
|
|
*/ |
105
|
|
|
protected $status; |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* The date on which the deal status was changed. |
109
|
|
|
* |
110
|
|
|
* @var DateTime |
111
|
|
|
*/ |
112
|
|
|
protected $statusChangedOn; |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* The visibility. |
116
|
|
|
* |
117
|
|
|
* @var string |
118
|
|
|
*/ |
119
|
|
|
protected $visibleTo; |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* Returns the id. |
123
|
|
|
* |
124
|
|
|
* @return int |
125
|
|
|
*/ |
126
|
|
|
public function getId(): int |
127
|
|
|
{ |
128
|
|
|
return $this->id; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* Returns the accountId. |
133
|
|
|
* |
134
|
|
|
* @return int |
135
|
|
|
*/ |
136
|
|
|
public function getAccountId(): int |
137
|
|
|
{ |
138
|
|
|
return $this->accountId; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* Returns the authorId. |
143
|
|
|
* |
144
|
|
|
* @return int |
145
|
|
|
*/ |
146
|
|
|
public function getAuthorId(): int |
147
|
|
|
{ |
148
|
|
|
return $this->authorId; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* Returns the categoryId. |
153
|
|
|
* |
154
|
|
|
* @return int |
155
|
|
|
*/ |
156
|
|
|
public function getCategoryId(): int |
157
|
|
|
{ |
158
|
|
|
return $this->categoryId; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* Returns the groupId. |
163
|
|
|
* |
164
|
|
|
* @return int |
165
|
|
|
*/ |
166
|
|
|
public function getGroupId(): int |
167
|
|
|
{ |
168
|
|
|
return $this->groupId; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
/** |
172
|
|
|
* Returns the ownerId. |
173
|
|
|
* |
174
|
|
|
* @return int |
175
|
|
|
*/ |
176
|
|
|
public function getOwnerId(): int |
177
|
|
|
{ |
178
|
|
|
return $this->ownerId; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
/** |
182
|
|
|
* Returns the partyId. |
183
|
|
|
* |
184
|
|
|
* @return int |
185
|
|
|
*/ |
186
|
|
|
public function getPartyId(): int |
187
|
|
|
{ |
188
|
|
|
return $this->partyId; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* Returns the responsiblePartyId. |
193
|
|
|
* |
194
|
|
|
* @return int |
195
|
|
|
*/ |
196
|
|
|
public function getResponsiblePartyId(): int |
197
|
|
|
{ |
198
|
|
|
return $this->responsiblePartyId; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* Returns the background. |
203
|
|
|
* |
204
|
|
|
* @return string |
205
|
|
|
*/ |
206
|
|
|
public function getBackground(): string |
207
|
|
|
{ |
208
|
|
|
return $this->background; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* Returns the currency. |
213
|
|
|
* |
214
|
|
|
* @return string |
215
|
|
|
*/ |
216
|
|
|
public function getCurrency(): string |
217
|
|
|
{ |
218
|
|
|
return $this->currency; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* Returns the duration. |
223
|
|
|
* |
224
|
|
|
* @return int |
225
|
|
|
*/ |
226
|
|
|
public function getDuration(): int |
227
|
|
|
{ |
228
|
|
|
return $this->duration; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* Returns the price. |
233
|
|
|
* |
234
|
|
|
* @return int |
235
|
|
|
*/ |
236
|
|
|
public function getPrice(): int |
237
|
|
|
{ |
238
|
|
|
return $this->price; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
/** |
242
|
|
|
* Returns the priceType. |
243
|
|
|
* |
244
|
|
|
* @return string |
245
|
|
|
*/ |
246
|
|
|
public function getPriceType(): string |
247
|
|
|
{ |
248
|
|
|
return $this->priceType; |
249
|
|
|
} |
250
|
|
|
|
251
|
|
|
/** |
252
|
|
|
* Returns the status. |
253
|
|
|
* |
254
|
|
|
* @return string |
255
|
|
|
*/ |
256
|
|
|
public function getStatus(): string |
257
|
|
|
{ |
258
|
|
|
return $this->status; |
259
|
|
|
} |
260
|
|
|
|
261
|
|
|
/** |
262
|
|
|
* Returns the statusChangedOn. |
263
|
|
|
* |
264
|
|
|
* @return DateTime |
265
|
|
|
*/ |
266
|
|
|
public function getStatusChangedOn(): DateTime |
267
|
|
|
{ |
268
|
|
|
return $this->statusChangedOn; |
269
|
|
|
} |
270
|
|
|
|
271
|
|
|
/** |
272
|
|
|
* Returns the visibleTo. |
273
|
|
|
* |
274
|
|
|
* @return string |
275
|
|
|
*/ |
276
|
|
|
public function getVisibleTo(): string |
277
|
|
|
{ |
278
|
|
|
return $this->visibleTo; |
279
|
|
|
} |
280
|
|
|
} |
281
|
|
|
|