Comment   A
last analyzed

Complexity

Total Complexity 24

Size/Duplication

Total Lines 302
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 24
lcom 0
cbo 1
dl 0
loc 302
rs 10
c 0
b 0
f 0

24 Methods

Rating   Name   Duplication   Size   Complexity  
A getBody() 0 4 1
A setBody() 0 6 1
A getBodyHtml() 0 4 1
A setBodyHtml() 0 6 1
A getAuthor() 0 4 1
A setAuthor() 0 6 1
A getEmail() 0 4 1
A setEmail() 0 6 1
A getStatus() 0 4 1
A setStatus() 0 6 1
A getArticleId() 0 4 1
A setArticleId() 0 6 1
A getBlogId() 0 4 1
A setBlogId() 0 6 1
A getCreatedAt() 0 4 1
A setCreatedAt() 0 6 1
A getUpdatedAt() 0 4 1
A setUpdatedAt() 0 6 1
A getIp() 0 4 1
A setIp() 0 6 1
A getUserAgent() 0 4 1
A setUserAgent() 0 6 1
A getPublishedAt() 0 4 1
A setPublishedAt() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Slince <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Slince\Shopify\Manager\Comment;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class Comment extends Model
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $body;
22
23
    /**
24
     * @var string
25
     */
26
    protected $bodyHtml;
27
28
    /**
29
     * @var string
30
     */
31
    protected $author;
32
33
    /**
34
     * @var string
35
     */
36
    protected $email;
37
38
    /**
39
     * @var string
40
     */
41
    protected $status;
42
43
    /**
44
     * @var int
45
     */
46
    protected $articleId;
47
48
    /**
49
     * @var int
50
     */
51
    protected $blogId;
52
53
    /**
54
     * @var \DateTimeInterface
55
     */
56
    protected $createdAt;
57
58
    /**
59
     * @var \DateTimeInterface
60
     */
61
    protected $updatedAt;
62
63
    /**
64
     * @var string
65
     */
66
    protected $ip;
67
68
    /**
69
     * @var string
70
     */
71
    protected $userAgent;
72
73
    /**
74
     * @var \DateTimeInterface
75
     */
76
    protected $publishedAt;
77
78
    /**
79
     * @return string
80
     */
81
    public function getBody()
82
    {
83
        return $this->body;
84
    }
85
86
    /**
87
     * @param string $body
88
     *
89
     * @return Comment
90
     */
91
    public function setBody($body)
92
    {
93
        $this->body = $body;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function getBodyHtml()
102
    {
103
        return $this->bodyHtml;
104
    }
105
106
    /**
107
     * @param string $bodyHtml
108
     *
109
     * @return Comment
110
     */
111
    public function setBodyHtml($bodyHtml)
112
    {
113
        $this->bodyHtml = $bodyHtml;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getAuthor()
122
    {
123
        return $this->author;
124
    }
125
126
    /**
127
     * @param string $author
128
     *
129
     * @return Comment
130
     */
131
    public function setAuthor($author)
132
    {
133
        $this->author = $author;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @return string
140
     */
141
    public function getEmail()
142
    {
143
        return $this->email;
144
    }
145
146
    /**
147
     * @param string $email
148
     *
149
     * @return Comment
150
     */
151
    public function setEmail($email)
152
    {
153
        $this->email = $email;
154
155
        return $this;
156
    }
157
158
    /**
159
     * @return string
160
     */
161
    public function getStatus()
162
    {
163
        return $this->status;
164
    }
165
166
    /**
167
     * @param string $status
168
     *
169
     * @return Comment
170
     */
171
    public function setStatus($status)
172
    {
173
        $this->status = $status;
174
175
        return $this;
176
    }
177
178
    /**
179
     * @return int
180
     */
181
    public function getArticleId()
182
    {
183
        return $this->articleId;
184
    }
185
186
    /**
187
     * @param int $articleId
188
     *
189
     * @return Comment
190
     */
191
    public function setArticleId($articleId)
192
    {
193
        $this->articleId = $articleId;
194
195
        return $this;
196
    }
197
198
    /**
199
     * @return int
200
     */
201
    public function getBlogId()
202
    {
203
        return $this->blogId;
204
    }
205
206
    /**
207
     * @param int $blogId
208
     *
209
     * @return Comment
210
     */
211
    public function setBlogId($blogId)
212
    {
213
        $this->blogId = $blogId;
214
215
        return $this;
216
    }
217
218
    /**
219
     * @return \DateTimeInterface
220
     */
221
    public function getCreatedAt()
222
    {
223
        return $this->createdAt;
224
    }
225
226
    /**
227
     * @param \DateTimeInterface $createdAt
228
     *
229
     * @return Comment
230
     */
231
    public function setCreatedAt($createdAt)
232
    {
233
        $this->createdAt = $createdAt;
234
235
        return $this;
236
    }
237
238
    /**
239
     * @return string
240
     */
241
    public function getUpdatedAt()
242
    {
243
        return $this->updatedAt;
244
    }
245
246
    /**
247
     * @param \DateTimeInterface $updatedAt
248
     *
249
     * @return Comment
250
     */
251
    public function setUpdatedAt($updatedAt)
252
    {
253
        $this->updatedAt = $updatedAt;
254
255
        return $this;
256
    }
257
258
    /**
259
     * @return string
260
     */
261
    public function getIp()
262
    {
263
        return $this->ip;
264
    }
265
266
    /**
267
     * @param string $ip
268
     *
269
     * @return Comment
270
     */
271
    public function setIp($ip)
272
    {
273
        $this->ip = $ip;
274
275
        return $this;
276
    }
277
278
    /**
279
     * @return string
280
     */
281
    public function getUserAgent()
282
    {
283
        return $this->userAgent;
284
    }
285
286
    /**
287
     * @param string $userAgent
288
     *
289
     * @return Comment
290
     */
291
    public function setUserAgent($userAgent)
292
    {
293
        $this->userAgent = $userAgent;
294
295
        return $this;
296
    }
297
298
    /**
299
     * @return string
300
     */
301
    public function getPublishedAt()
302
    {
303
        return $this->publishedAt;
304
    }
305
306
    /**
307
     * @param \DateTimeInterface $publishedAt
308
     *
309
     * @return Comment
310
     */
311
    public function setPublishedAt($publishedAt)
312
    {
313
        $this->publishedAt = $publishedAt;
314
315
        return $this;
316
    }
317
}