ProductVariant   A
last analyzed

Complexity

Total Complexity 18

Size/Duplication

Total Lines 191
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 18
lcom 0
cbo 0
dl 0
loc 191
rs 10
c 0
b 0
f 0

18 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 4 1
A getTitle() 0 4 1
A setTitle() 0 4 1
A getUrl() 0 4 1
A setUrl() 0 4 1
A getSku() 0 4 1
A setSku() 0 4 1
A getPrice() 0 4 1
A setPrice() 0 4 1
A getInventoryQuantity() 0 4 1
A setInventoryQuantity() 0 4 1
A getImageUrl() 0 4 1
A setImageUrl() 0 4 1
A getBackorders() 0 4 1
A setBackorders() 0 4 1
A getVisibility() 0 4 1
A setVisibility() 0 4 1
1
<?php
2
/*
3
 * This file is part of the MailChimpEcommerceBundle package.
4
 *
5
 * Copyright (c) 2017 kevin92dev.es
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * Feel free to edit as you please, and have fun.
11
 *
12
 * @author Kevin Murillo <[email protected]>
13
 */
14
15
namespace Kevin92dev\MailChimpEcommerceBundle\Entities;
16
17
class ProductVariant
18
{
19
    /**
20
     * @var string
21
     */
22
    private $id;
23
24
    /**
25
     * @var string
26
     */
27
    private $title;
28
29
    /**
30
     * @var string
31
     */
32
    private $url;
33
34
    /**
35
     * @var string
36
     */
37
    private $sku;
38
39
    /**
40
     * @var integer
41
     */
42
    private $price;
43
44
    /**
45
     * @var integer
46
     */
47
    private $inventoryQuantity;
48
49
    /**
50
     * @var string
51
     */
52
    private $imageUrl;
53
54
    /**
55
     * @var string
56
     */
57
    private $backorders;
58
59
    /**
60
     * @var string
61
     */
62
    private $visibility;
63
64
    /**
65
     * @return string
66
     */
67
    public function getId()
68
    {
69
        return $this->id;
70
    }
71
72
    /**
73
     * @param string $id
74
     */
75
    public function setId($id)
76
    {
77
        $this->id = $id;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getTitle()
84
    {
85
        return $this->title;
86
    }
87
88
    /**
89
     * @param string $title
90
     */
91
    public function setTitle($title)
92
    {
93
        $this->title = $title;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getUrl()
100
    {
101
        return $this->url;
102
    }
103
104
    /**
105
     * @param string $url
106
     */
107
    public function setUrl($url)
108
    {
109
        $this->url = $url;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getSku()
116
    {
117
        return $this->sku;
118
    }
119
120
    /**
121
     * @param string $sku
122
     */
123
    public function setSku($sku)
124
    {
125
        $this->sku = $sku;
126
    }
127
128
    /**
129
     * @return int
130
     */
131
    public function getPrice()
132
    {
133
        return $this->price;
134
    }
135
136
    /**
137
     * @param int $price
138
     */
139
    public function setPrice($price)
140
    {
141
        $this->price = $price;
142
    }
143
144
    /**
145
     * @return int
146
     */
147
    public function getInventoryQuantity()
148
    {
149
        return $this->inventoryQuantity;
150
    }
151
152
    /**
153
     * @param int $inventoryQuantity
154
     */
155
    public function setInventoryQuantity($inventoryQuantity)
156
    {
157
        $this->inventoryQuantity = $inventoryQuantity;
158
    }
159
160
    /**
161
     * @return string
162
     */
163
    public function getImageUrl()
164
    {
165
        return $this->imageUrl;
166
    }
167
168
    /**
169
     * @param string $imageUrl
170
     */
171
    public function setImageUrl($imageUrl)
172
    {
173
        $this->imageUrl = $imageUrl;
174
    }
175
176
    /**
177
     * @return string
178
     */
179
    public function getBackorders()
180
    {
181
        return $this->backorders;
182
    }
183
184
    /**
185
     * @param string $backorders
186
     */
187
    public function setBackorders($backorders)
188
    {
189
        $this->backorders = $backorders;
190
    }
191
192
    /**
193
     * @return string
194
     */
195
    public function getVisibility()
196
    {
197
        return $this->visibility;
198
    }
199
200
    /**
201
     * @param string $visibility
202
     */
203
    public function setVisibility($visibility)
204
    {
205
        $this->visibility = $visibility;
206
    }
207
}