Completed
Push — master ( 7e243d...e0749f )
by Taosikai
11:17
created

SmartCollection::isDisjunctive()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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\SmartCollection;
13
14
use Slince\Shopify\Common\Model\Model;
15
use Slince\Shopify\Common\Model\AdminGraphqlApiId;
16
17
class SmartCollection extends Model
18
{
19
    use AdminGraphqlApiId;
20
21
    /**
22
     * @var string
23
     */
24
    protected $handle;
25
26
    /**
27
     * @var string
28
     */
29
    protected $title;
30
31
    /**
32
     * @var \DateTimeInterface
33
     */
34
    protected $updatedAt;
35
36
    /**
37
     * @var string
38
     */
39
    protected $bodyHtml;
40
41
    /**
42
     * @var \DateTimeInterface
43
     */
44
    protected $publishedAt;
45
46
    /**
47
     * @var string
48
     */
49
    protected $sortOrder;
50
51
    /**
52
     * @var string
53
     */
54
    protected $templateSuffix;
55
56
    /**
57
     * @var boolean
58
     */
59
    protected $disjunctive;
60
61
    /**
62
     * @var array
63
     */
64
    protected $rules;
65
66
    /**
67
     * @var string
68
     */
69
    protected $publishedScope;
70
71
    /**
72
     * @var SmartCollectionImage
73
     */
74
    protected $image;
75
76
    /**
77
     * @return string
78
     */
79
    public function getHandle()
80
    {
81
        return $this->handle;
82
    }
83
84
    /**
85
     * @param string $handle
86
     * @return SmartCollection
87
     */
88
    public function setHandle($handle)
89
    {
90
        $this->handle = $handle;
91
        return $this;
92
    }
93
94
    /**
95
     * @return string
96
     */
97
    public function getTitle()
98
    {
99
        return $this->title;
100
    }
101
102
    /**
103
     * @param string $title
104
     * @return SmartCollection
105
     */
106
    public function setTitle($title)
107
    {
108
        $this->title = $title;
109
        return $this;
110
    }
111
112
    /**
113
     * @return \DateTimeInterface
114
     */
115
    public function getUpdatedAt()
116
    {
117
        return $this->updatedAt;
118
    }
119
120
    /**
121
     * @param \DateTimeInterface $updatedAt
122
     * @return SmartCollection
123
     */
124
    public function setUpdatedAt($updatedAt)
125
    {
126
        $this->updatedAt = $updatedAt;
127
        return $this;
128
    }
129
130
    /**
131
     * @return string
132
     */
133
    public function getBodyHtml()
134
    {
135
        return $this->bodyHtml;
136
    }
137
138
    /**
139
     * @param string $bodyHtml
140
     * @return SmartCollection
141
     */
142
    public function setBodyHtml($bodyHtml)
143
    {
144
        $this->bodyHtml = $bodyHtml;
145
        return $this;
146
    }
147
148
    /**
149
     * @return \DateTimeInterface
150
     */
151
    public function getPublishedAt()
152
    {
153
        return $this->publishedAt;
154
    }
155
156
    /**
157
     * @param \DateTimeInterface $publishedAt
158
     * @return SmartCollection
159
     */
160
    public function setPublishedAt($publishedAt)
161
    {
162
        $this->publishedAt = $publishedAt;
163
        return $this;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getSortOrder()
170
    {
171
        return $this->sortOrder;
172
    }
173
174
    /**
175
     * @param string $sortOrder
176
     * @return SmartCollection
177
     */
178
    public function setSortOrder($sortOrder)
179
    {
180
        $this->sortOrder = $sortOrder;
181
        return $this;
182
    }
183
184
    /**
185
     * @return string
186
     */
187
    public function getTemplateSuffix()
188
    {
189
        return $this->templateSuffix;
190
    }
191
192
    /**
193
     * @param string $templateSuffix
194
     * @return SmartCollection
195
     */
196
    public function setTemplateSuffix($templateSuffix)
197
    {
198
        $this->templateSuffix = $templateSuffix;
199
        return $this;
200
    }
201
202
    /**
203
     * @return bool
204
     */
205
    public function isDisjunctive()
206
    {
207
        return $this->disjunctive;
208
    }
209
210
    /**
211
     * @param bool $disjunctive
212
     * @return SmartCollection
213
     */
214
    public function setDisjunctive($disjunctive)
215
    {
216
        $this->disjunctive = $disjunctive;
217
        return $this;
218
    }
219
220
    /**
221
     * @return array
222
     */
223
    public function getRules()
224
    {
225
        return $this->rules;
226
    }
227
228
    /**
229
     * @param array $rules
230
     * @return SmartCollection
231
     */
232
    public function setRules($rules)
233
    {
234
        $this->rules = $rules;
235
        return $this;
236
    }
237
238
    /**
239
     * @return string
240
     */
241
    public function getPublishedScope()
242
    {
243
        return $this->publishedScope;
244
    }
245
246
    /**
247
     * @param string $publishedScope
248
     * @return SmartCollection
249
     */
250
    public function setPublishedScope($publishedScope)
251
    {
252
        $this->publishedScope = $publishedScope;
253
        return $this;
254
    }
255
256
    /**
257
     * @return SmartCollectionImage
258
     */
259
    public function getImage()
260
    {
261
        return $this->image;
262
    }
263
264
    /**
265
     * @param SmartCollectionImage $image
266
     * @return SmartCollection
267
     */
268
    public function setImage($image)
269
    {
270
        $this->image = $image;
271
        return $this;
272
    }
273
}