Article   A
last analyzed

Complexity

Total Complexity 24

Size/Duplication

Total Lines 304
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 24
lcom 0
cbo 2
dl 0
loc 304
rs 10
c 0
b 0
f 0

24 Methods

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