Completed
Push — master ( cc2b64...3127a8 )
by
unknown
28:00 queued 12:57
created

PricelistModel::getIsActive()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Starweb\Api\Generated\Model;
4
5
class PricelistModel
6
{
7
    /**
8
     * The pricelist id
9
     *
10
     * @var int
11
     */
12
    protected $pricelistId;
13
    /**
14
     * The name of this pricelist
15
     *
16
     * @var string
17
     */
18
    protected $name;
19
    /**
20
     * If this pricelist is the default ”master” pricelist or not. Only one pricelist can be the master pricelist
21
     *
22
     * @var bool
23
     */
24
    protected $isMaster;
25
    /**
26
     * Shows if the pricelist is activated or not.
27
     *
28
     * @var bool
29
     */
30
    protected $isActive;
31
    /**
32
     * The region this pricelist is valid for
33
     *
34
     * @var string
35
     */
36
    protected $region;
37
    /**
38
     * The countryCodes this pricelist is valid for. These will be set only if the `region` property is set to the value `selected` for specific countries.
39
     *
40
     * @var string[]
41
     */
42
    protected $countryCodes;
43
    /**
44
     * The currencyCode this pricelist is valid for
45
     *
46
     * @var string
47
     */
48
    protected $currencyCode;
49
    /**
50
     * Does this pricelist has a parent price list. 
51
     *
52
     * @var int
53
     */
54
    protected $parentPricelistId;
55
    /**
56
     * Is this pricelist a ”customer” pricelist (for selected customer groups)
57
     *
58
     * @var bool
59
     */
60
    protected $isCustomerPricelist;
61
    /**
62
     * Is this pricelist a ”country” pricelist (base pricelist for a certain country)
63
     *
64
     * @var bool
65
     */
66
    protected $isCountryPricelist;
67
    /**
68
     * The pricelist id
69
     *
70
     * @return int
71
     */
72
    public function getPricelistId() : ?int
73
    {
74
        return $this->pricelistId;
75
    }
76
    /**
77
     * The pricelist id
78
     *
79
     * @param int $pricelistId
80
     *
81
     * @return self
82
     */
83
    public function setPricelistId(?int $pricelistId) : self
84
    {
85
        $this->pricelistId = $pricelistId;
86
        return $this;
87
    }
88
    /**
89
     * The name of this pricelist
90
     *
91
     * @return string
92
     */
93
    public function getName() : ?string
94
    {
95
        return $this->name;
96
    }
97
    /**
98
     * The name of this pricelist
99
     *
100
     * @param string $name
101
     *
102
     * @return self
103
     */
104
    public function setName(?string $name) : self
105
    {
106
        $this->name = $name;
107
        return $this;
108
    }
109
    /**
110
     * If this pricelist is the default ”master” pricelist or not. Only one pricelist can be the master pricelist
111
     *
112
     * @return bool
113
     */
114
    public function getIsMaster() : ?bool
115
    {
116
        return $this->isMaster;
117
    }
118
    /**
119
     * If this pricelist is the default ”master” pricelist or not. Only one pricelist can be the master pricelist
120
     *
121
     * @param bool $isMaster
122
     *
123
     * @return self
124
     */
125
    public function setIsMaster(?bool $isMaster) : self
126
    {
127
        $this->isMaster = $isMaster;
128
        return $this;
129
    }
130
    /**
131
     * Shows if the pricelist is activated or not.
132
     *
133
     * @return bool
134
     */
135
    public function getIsActive() : ?bool
136
    {
137
        return $this->isActive;
138
    }
139
    /**
140
     * Shows if the pricelist is activated or not.
141
     *
142
     * @param bool $isActive
143
     *
144
     * @return self
145
     */
146
    public function setIsActive(?bool $isActive) : self
147
    {
148
        $this->isActive = $isActive;
149
        return $this;
150
    }
151
    /**
152
     * The region this pricelist is valid for
153
     *
154
     * @return string
155
     */
156
    public function getRegion() : ?string
157
    {
158
        return $this->region;
159
    }
160
    /**
161
     * The region this pricelist is valid for
162
     *
163
     * @param string $region
164
     *
165
     * @return self
166
     */
167
    public function setRegion(?string $region) : self
168
    {
169
        $this->region = $region;
170
        return $this;
171
    }
172
    /**
173
     * The countryCodes this pricelist is valid for. These will be set only if the `region` property is set to the value `selected` for specific countries.
174
     *
175
     * @return string[]
176
     */
177
    public function getCountryCodes() : ?array
178
    {
179
        return $this->countryCodes;
180
    }
181
    /**
182
     * The countryCodes this pricelist is valid for. These will be set only if the `region` property is set to the value `selected` for specific countries.
183
     *
184
     * @param string[] $countryCodes
185
     *
186
     * @return self
187
     */
188
    public function setCountryCodes(?array $countryCodes) : self
189
    {
190
        $this->countryCodes = $countryCodes;
191
        return $this;
192
    }
193
    /**
194
     * The currencyCode this pricelist is valid for
195
     *
196
     * @return string
197
     */
198
    public function getCurrencyCode() : ?string
199
    {
200
        return $this->currencyCode;
201
    }
202
    /**
203
     * The currencyCode this pricelist is valid for
204
     *
205
     * @param string $currencyCode
206
     *
207
     * @return self
208
     */
209
    public function setCurrencyCode(?string $currencyCode) : self
210
    {
211
        $this->currencyCode = $currencyCode;
212
        return $this;
213
    }
214
    /**
215
     * Does this pricelist has a parent price list. 
216
     *
217
     * @return int
218
     */
219
    public function getParentPricelistId() : ?int
220
    {
221
        return $this->parentPricelistId;
222
    }
223
    /**
224
     * Does this pricelist has a parent price list. 
225
     *
226
     * @param int $parentPricelistId
227
     *
228
     * @return self
229
     */
230
    public function setParentPricelistId(?int $parentPricelistId) : self
231
    {
232
        $this->parentPricelistId = $parentPricelistId;
233
        return $this;
234
    }
235
    /**
236
     * Is this pricelist a ”customer” pricelist (for selected customer groups)
237
     *
238
     * @return bool
239
     */
240
    public function getIsCustomerPricelist() : ?bool
241
    {
242
        return $this->isCustomerPricelist;
243
    }
244
    /**
245
     * Is this pricelist a ”customer” pricelist (for selected customer groups)
246
     *
247
     * @param bool $isCustomerPricelist
248
     *
249
     * @return self
250
     */
251
    public function setIsCustomerPricelist(?bool $isCustomerPricelist) : self
252
    {
253
        $this->isCustomerPricelist = $isCustomerPricelist;
254
        return $this;
255
    }
256
    /**
257
     * Is this pricelist a ”country” pricelist (base pricelist for a certain country)
258
     *
259
     * @return bool
260
     */
261
    public function getIsCountryPricelist() : ?bool
262
    {
263
        return $this->isCountryPricelist;
264
    }
265
    /**
266
     * Is this pricelist a ”country” pricelist (base pricelist for a certain country)
267
     *
268
     * @param bool $isCountryPricelist
269
     *
270
     * @return self
271
     */
272
    public function setIsCountryPricelist(?bool $isCountryPricelist) : self
273
    {
274
        $this->isCountryPricelist = $isCountryPricelist;
275
        return $this;
276
    }
277
}