Completed
Push — master ( caad37...82c5ce )
by Dmitriy
06:13
created

ShopOpinion   A

Complexity

Total Complexity 18

Size/Duplication

Total Lines 225
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 83.33%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 18
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 225
ccs 30
cts 36
cp 0.8333
rs 10

18 Methods

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