Collect   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 177
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 14
lcom 0
cbo 1
dl 0
loc 177
rs 10
c 0
b 0
f 0

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getCollectionId() 0 4 1
A setCollectionId() 0 6 1
A getCreatedAt() 0 4 1
A setCreatedAt() 0 6 1
A getUpdatedAt() 0 4 1
A setUpdatedAt() 0 6 1
A isFeatured() 0 4 1
A setFeatured() 0 6 1
A getPosition() 0 4 1
A setPosition() 0 6 1
A getProductId() 0 4 1
A setProductId() 0 6 1
A getSortValue() 0 4 1
A setSortValue() 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\Collect;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class Collect extends Model
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $collectionId;
22
23
    /**
24
     * @var \DateTimeInterface
25
     */
26
    protected $createdAt;
27
28
    /**
29
     * @var \DateTimeInterface
30
     */
31
    protected $updatedAt;
32
33
    /**
34
     * @var bool
35
     */
36
    protected $featured;
37
38
    /**
39
     * @var int
40
     */
41
    protected $position;
42
43
    /**
44
     * @var int
45
     */
46
    protected $productId;
47
48
    /**
49
     * @var int
50
     */
51
    protected $sortValue;
52
53
    /**
54
     * @return int
55
     */
56
    public function getCollectionId()
57
    {
58
        return $this->collectionId;
59
    }
60
61
    /**
62
     * @param int $collectionId
63
     *
64
     * @return Collect
65
     */
66
    public function setCollectionId($collectionId)
67
    {
68
        $this->collectionId = $collectionId;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return \DateTimeInterface
75
     */
76
    public function getCreatedAt()
77
    {
78
        return $this->createdAt;
79
    }
80
81
    /**
82
     * @param \DateTimeInterface $createdAt
83
     *
84
     * @return Collect
85
     */
86
    public function setCreatedAt($createdAt)
87
    {
88
        $this->createdAt = $createdAt;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return \DateTimeInterface
95
     */
96
    public function getUpdatedAt()
97
    {
98
        return $this->updatedAt;
99
    }
100
101
    /**
102
     * @param \DateTimeInterface $updatedAt
103
     *
104
     * @return Collect
105
     */
106
    public function setUpdatedAt($updatedAt)
107
    {
108
        $this->updatedAt = $updatedAt;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @return bool
115
     */
116
    public function isFeatured()
117
    {
118
        return $this->featured;
119
    }
120
121
    /**
122
     * @param bool $featured
123
     *
124
     * @return Collect
125
     */
126
    public function setFeatured($featured)
127
    {
128
        $this->featured = $featured;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @return int
135
     */
136
    public function getPosition()
137
    {
138
        return $this->position;
139
    }
140
141
    /**
142
     * @param int $position
143
     *
144
     * @return Collect
145
     */
146
    public function setPosition($position)
147
    {
148
        $this->position = $position;
149
150
        return $this;
151
    }
152
153
    /**
154
     * @return int
155
     */
156
    public function getProductId()
157
    {
158
        return $this->productId;
159
    }
160
161
    /**
162
     * @param int $productId
163
     *
164
     * @return Collect
165
     */
166
    public function setProductId($productId)
167
    {
168
        $this->productId = $productId;
169
170
        return $this;
171
    }
172
173
    /**
174
     * @return int
175
     */
176
    public function getSortValue()
177
    {
178
        return $this->sortValue;
179
    }
180
181
    /**
182
     * @param int $sortValue
183
     *
184
     * @return Collect
185
     */
186
    public function setSortValue($sortValue)
187
    {
188
        $this->sortValue = $sortValue;
189
190
        return $this;
191
    }
192
}