Theme   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 179
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 14
lcom 0
cbo 2
dl 0
loc 179
rs 10
c 0
b 0
f 0

14 Methods

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