Passed
Pull Request — master (#32)
by
unknown
18:56
created

ProductStockStatusResponseModel::setInStock()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Starweb\Api\Generated\Model;
4
5
class ProductStockStatusResponseModel
6
{
7
    /**
8
     * The stock status id
9
     *
10
     * @var int|null
11
     */
12
    protected $stockStatusId;
13
    /**
14
     * The idCode of the status. Only standard statuses has idCodes set. It is also not permitted to change names for standard statuses
15
     *
16
     * @var string|null
17
     */
18
    protected $idCode;
19
    /**
20
     * Sort index for this status
21
     *
22
     * @var int|null
23
     */
24
    protected $sortIndex;
25
    /**
26
     * This has to be set to another, existing stock status id, or null. If a product has its quantity changed to negative, the product will then change stock status to the one with this id
27
     *
28
     * @var int|null
29
     */
30
    protected $stockoutNewStatusId;
31
    /**
32
     * Is the product buyable when this status is set?
33
     *
34
     * @var bool|null
35
     */
36
    protected $productBuyable = true;
37
    /**
38
     * Should the product be displayed as "in stock" when this status is set?
39
     *
40
     * @var bool|null
41
     */
42
    protected $inStock = false;
43
    /**
44
     * 
45
     *
46
     * @var ProductStockStatusResponseModelLanguages|null
47
     */
48
    protected $languages;
49
    /**
50
     * The stock status id
51
     *
52
     * @return int|null
53
     */
54
    public function getStockStatusId() : ?int
55
    {
56
        return $this->stockStatusId;
57
    }
58
    /**
59
     * The stock status id
60
     *
61
     * @param int|null $stockStatusId
62
     *
63
     * @return self
64
     */
65
    public function setStockStatusId(?int $stockStatusId) : self
66
    {
67
        $this->stockStatusId = $stockStatusId;
68
        return $this;
69
    }
70
    /**
71
     * The idCode of the status. Only standard statuses has idCodes set. It is also not permitted to change names for standard statuses
72
     *
73
     * @return string|null
74
     */
75
    public function getIdCode() : ?string
76
    {
77
        return $this->idCode;
78
    }
79
    /**
80
     * The idCode of the status. Only standard statuses has idCodes set. It is also not permitted to change names for standard statuses
81
     *
82
     * @param string|null $idCode
83
     *
84
     * @return self
85
     */
86
    public function setIdCode(?string $idCode) : self
87
    {
88
        $this->idCode = $idCode;
89
        return $this;
90
    }
91
    /**
92
     * Sort index for this status
93
     *
94
     * @return int|null
95
     */
96
    public function getSortIndex() : ?int
97
    {
98
        return $this->sortIndex;
99
    }
100
    /**
101
     * Sort index for this status
102
     *
103
     * @param int|null $sortIndex
104
     *
105
     * @return self
106
     */
107
    public function setSortIndex(?int $sortIndex) : self
108
    {
109
        $this->sortIndex = $sortIndex;
110
        return $this;
111
    }
112
    /**
113
     * This has to be set to another, existing stock status id, or null. If a product has its quantity changed to negative, the product will then change stock status to the one with this id
114
     *
115
     * @return int|null
116
     */
117
    public function getStockoutNewStatusId() : ?int
118
    {
119
        return $this->stockoutNewStatusId;
120
    }
121
    /**
122
     * This has to be set to another, existing stock status id, or null. If a product has its quantity changed to negative, the product will then change stock status to the one with this id
123
     *
124
     * @param int|null $stockoutNewStatusId
125
     *
126
     * @return self
127
     */
128
    public function setStockoutNewStatusId(?int $stockoutNewStatusId) : self
129
    {
130
        $this->stockoutNewStatusId = $stockoutNewStatusId;
131
        return $this;
132
    }
133
    /**
134
     * Is the product buyable when this status is set?
135
     *
136
     * @return bool|null
137
     */
138
    public function getProductBuyable() : ?bool
139
    {
140
        return $this->productBuyable;
141
    }
142
    /**
143
     * Is the product buyable when this status is set?
144
     *
145
     * @param bool|null $productBuyable
146
     *
147
     * @return self
148
     */
149
    public function setProductBuyable(?bool $productBuyable) : self
150
    {
151
        $this->productBuyable = $productBuyable;
152
        return $this;
153
    }
154
    /**
155
     * Should the product be displayed as "in stock" when this status is set?
156
     *
157
     * @return bool|null
158
     */
159
    public function getInStock() : ?bool
160
    {
161
        return $this->inStock;
162
    }
163
    /**
164
     * Should the product be displayed as "in stock" when this status is set?
165
     *
166
     * @param bool|null $inStock
167
     *
168
     * @return self
169
     */
170
    public function setInStock(?bool $inStock) : self
171
    {
172
        $this->inStock = $inStock;
173
        return $this;
174
    }
175
    /**
176
     * 
177
     *
178
     * @return ProductStockStatusResponseModelLanguages|null
179
     */
180
    public function getLanguages() : ?ProductStockStatusResponseModelLanguages
181
    {
182
        return $this->languages;
183
    }
184
    /**
185
     * 
186
     *
187
     * @param ProductStockStatusResponseModelLanguages|null $languages
188
     *
189
     * @return self
190
     */
191
    public function setLanguages(?ProductStockStatusResponseModelLanguages $languages) : self
192
    {
193
        $this->languages = $languages;
194
        return $this;
195
    }
196
}