|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Yandex\Market\Content\Models; |
|
4
|
|
|
|
|
5
|
|
|
use Yandex\Common\Model; |
|
6
|
|
|
|
|
7
|
|
|
class ModelOpinion extends Model |
|
8
|
|
|
{ |
|
9
|
|
|
protected $grade = null; |
|
10
|
|
|
|
|
11
|
|
|
protected $agree = null; |
|
12
|
|
|
|
|
13
|
|
|
protected $reject = null; |
|
14
|
|
|
|
|
15
|
|
|
protected $id = null; |
|
16
|
|
|
|
|
17
|
|
|
protected $anonymous = null; |
|
18
|
|
|
|
|
19
|
|
|
protected $authorInfo = null; |
|
20
|
|
|
|
|
21
|
|
|
protected $date = null; |
|
22
|
|
|
|
|
23
|
|
|
protected $author = null; |
|
24
|
|
|
|
|
25
|
|
|
protected $text = null; |
|
26
|
|
|
|
|
27
|
|
|
protected $contra = null; |
|
28
|
|
|
|
|
29
|
|
|
protected $pro = null; |
|
30
|
|
|
|
|
31
|
|
|
protected $region = null; |
|
32
|
|
|
|
|
33
|
|
|
protected $visibility = null; |
|
34
|
|
|
|
|
35
|
|
|
protected $usageTime = null; |
|
36
|
|
|
|
|
37
|
|
|
protected $priceGrade = null; |
|
38
|
|
|
|
|
39
|
|
|
protected $convenienceGrade = null; |
|
40
|
|
|
|
|
41
|
|
|
protected $qualityGrade = null; |
|
42
|
|
|
|
|
43
|
|
|
protected $mappingClasses = [ |
|
44
|
|
|
'authorInfo' => 'Yandex\Market\Content\Models\OpinionAuthorInfo', |
|
45
|
|
|
'pro' => 'Yandex\Market\Content\Models\Fact', |
|
46
|
|
|
'contra' => 'Yandex\Market\Content\Models\Fact' |
|
47
|
|
|
]; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* Retrieve the grade property |
|
51
|
|
|
* |
|
52
|
|
|
* @return int|null |
|
53
|
|
|
*/ |
|
54
|
1 |
|
public function getGrade() |
|
55
|
|
|
{ |
|
56
|
1 |
|
return $this->grade; |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* Retrieve the agree property |
|
61
|
|
|
* |
|
62
|
|
|
* @return int|null |
|
63
|
|
|
*/ |
|
64
|
1 |
|
public function getAgree() |
|
65
|
|
|
{ |
|
66
|
1 |
|
return $this->agree; |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* Retrieve the reject property |
|
71
|
|
|
* |
|
72
|
|
|
* @return int|null |
|
73
|
|
|
*/ |
|
74
|
1 |
|
public function getReject() |
|
75
|
|
|
{ |
|
76
|
1 |
|
return $this->reject; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* Retrieve the id property |
|
81
|
|
|
* |
|
82
|
|
|
* @return int|null |
|
83
|
|
|
*/ |
|
84
|
1 |
|
public function getId() |
|
85
|
|
|
{ |
|
86
|
1 |
|
return $this->id; |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* Retrieve the anonymous property |
|
91
|
|
|
* |
|
92
|
|
|
* @return bool|null |
|
93
|
|
|
*/ |
|
94
|
1 |
|
public function getAnonymous() |
|
95
|
|
|
{ |
|
96
|
1 |
|
return $this->anonymous; |
|
97
|
|
|
} |
|
98
|
|
|
|
|
99
|
|
|
/** |
|
100
|
|
|
* Retrieve the authorInfo property |
|
101
|
|
|
* |
|
102
|
|
|
* @return AuthorInfo|null |
|
103
|
|
|
*/ |
|
104
|
1 |
|
public function getAuthorInfo() |
|
105
|
|
|
{ |
|
106
|
1 |
|
return $this->authorInfo; |
|
107
|
|
|
} |
|
108
|
|
|
|
|
109
|
|
|
/** |
|
110
|
|
|
* Retrieve the date property |
|
111
|
|
|
* |
|
112
|
|
|
* @return bool|null |
|
113
|
|
|
*/ |
|
114
|
1 |
|
public function getDate() |
|
115
|
|
|
{ |
|
116
|
1 |
|
return $this->date; |
|
117
|
|
|
} |
|
118
|
|
|
|
|
119
|
|
|
/** |
|
120
|
|
|
* Retrieve the author property |
|
121
|
|
|
* |
|
122
|
|
|
* @return string|null |
|
123
|
|
|
*/ |
|
124
|
1 |
|
public function getAuthor() |
|
125
|
|
|
{ |
|
126
|
1 |
|
return $this->author; |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
/** |
|
130
|
|
|
* Retrieve the text property |
|
131
|
|
|
* |
|
132
|
|
|
* @return string|null |
|
133
|
|
|
*/ |
|
134
|
1 |
|
public function getText() |
|
135
|
|
|
{ |
|
136
|
1 |
|
return $this->text; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* Retrieve the contra property |
|
141
|
|
|
* |
|
142
|
|
|
* @return string|null |
|
143
|
|
|
*/ |
|
144
|
1 |
|
public function getContra() |
|
145
|
|
|
{ |
|
146
|
1 |
|
return $this->contra; |
|
147
|
|
|
} |
|
148
|
|
|
|
|
149
|
|
|
/** |
|
150
|
|
|
* Retrieve the pro property |
|
151
|
|
|
* |
|
152
|
|
|
* @return string|null |
|
153
|
|
|
*/ |
|
154
|
1 |
|
public function getPro() |
|
155
|
|
|
{ |
|
156
|
1 |
|
return $this->pro; |
|
157
|
|
|
} |
|
158
|
|
|
|
|
159
|
|
|
/** |
|
160
|
|
|
* Retrieve the region property |
|
161
|
|
|
* |
|
162
|
|
|
* @return int|null |
|
163
|
|
|
*/ |
|
164
|
|
|
public function getRegion() |
|
165
|
|
|
{ |
|
166
|
|
|
return $this->region; |
|
167
|
|
|
} |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* Retrieve the visibility property |
|
171
|
|
|
* |
|
172
|
|
|
* @return string|null |
|
173
|
|
|
*/ |
|
174
|
1 |
|
public function getVisibility() |
|
175
|
|
|
{ |
|
176
|
1 |
|
return $this->visibility; |
|
177
|
|
|
} |
|
178
|
|
|
|
|
179
|
|
|
/** |
|
180
|
|
|
* Retrieve the usageTime property |
|
181
|
|
|
* |
|
182
|
|
|
* @return string|null |
|
183
|
|
|
*/ |
|
184
|
1 |
|
public function getUsageTime() |
|
185
|
|
|
{ |
|
186
|
1 |
|
return $this->usageTime; |
|
187
|
|
|
} |
|
188
|
|
|
|
|
189
|
|
|
/** |
|
190
|
|
|
* Retrieve the priceGrade property |
|
191
|
|
|
* |
|
192
|
|
|
* @return int|null |
|
193
|
|
|
*/ |
|
194
|
|
|
public function getPriceGrade() |
|
195
|
|
|
{ |
|
196
|
|
|
return $this->priceGrade; |
|
197
|
|
|
} |
|
198
|
|
|
|
|
199
|
|
|
/** |
|
200
|
|
|
* Retrieve the convenienceGrade property |
|
201
|
|
|
* |
|
202
|
|
|
* @return int|null |
|
203
|
|
|
*/ |
|
204
|
|
|
public function getConvenienceGrade() |
|
205
|
|
|
{ |
|
206
|
|
|
return $this->convenienceGrade; |
|
207
|
|
|
} |
|
208
|
|
|
|
|
209
|
|
|
/** |
|
210
|
|
|
* Retrieve the qualityGrade property |
|
211
|
|
|
* |
|
212
|
|
|
* @return int|null |
|
213
|
|
|
*/ |
|
214
|
|
|
public function getQualityGrade() |
|
215
|
|
|
{ |
|
216
|
|
|
return $this->qualityGrade; |
|
217
|
|
|
} |
|
218
|
|
|
} |
|
219
|
|
|
|