Product::setRealStock()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
4
namespace Dolibarr\Client\Domain\Product;
5
6
use JMS\Serializer\Annotation as JMS;
7
8
/**
9
 * @package Dolibarr\Client\Domain\Product
10
 */
11
final class Product
12
{
13
14
    /**
15
     * @var string
16
     *
17
     * @JMS\Type("string")
18
     * @JMS\SerializedName("id")
19
     */
20
    private $id;
21
22
    /**
23
     * @var string|null
24
     *
25
     * @JMS\Type("string")
26
     * @JMS\SerializedName("ref")
27
     */
28
    private $reference;
29
30
    /**
31
     * @var string|null
32
     *
33
     * @JMS\Type("string")
34
     * @JMS\SerializedName("ref_ext")
35
     */
36
    private $externalReference;
37
38
    /**
39
     * @var string
40
     *
41
     * @JMS\Type("string")
42
     * @JMS\SerializedName("barcode")
43
     */
44
    private $barcode;
45
46
    /**
47
     * @var string
48
     *
49
     * @JMS\Type("string")
50
     * @JMS\SerializedName("label")
51
     */
52
    private $label;
53
54
    /**
55
     * @var string
56
     *
57
     * @JMS\Type("string")
58
     * @JMS\SerializedName("description")
59
     */
60
    private $description;
61
62
    /**
63
     * @var int
64
     *
65
     * @JMS\Type("integer")
66
     * @JMS\SerializedName("stock_reel")
67
     */
68
    private $realStock;
69
70
    /**
71
     * @var bool
72
     *
73
     * @JMS\Type("boolean")
74
     * @JMS\SerializedName("status_batch")
75
     */
76
    private $batchUsage = false;
77
78
    /**
79
     * @var float
80
     *
81
     * @JMS\Type("float")
82
     * @JMS\SerializedName("price")
83
     */
84
    private $priceHt;
85
86
    /**
87
     * @var float
88
     *
89
     * @JMS\Type("float")
90
     * @JMS\SerializedName("price_ttc")
91
     */
92
    private $priceTtc;
93
94
    /**
95
     * @var float
96
     *
97
     * @JMS\Type("float")
98
     * @JMS\SerializedName("tva_tx")
99
     */
100
    private $rateVat;
101
102
    /**
103
     * @return string
104
     */
105
    public function getId()
106
    {
107
        return $this->id;
108
    }
109
110
    /**
111
     * @param string $id
112
     */
113
    public function setId($id)
114
    {
115
        $this->id = $id;
116
    }
117
118
    /**
119
     * @return string|null
120
     */
121
    public function getReference()
122
    {
123
        return $this->reference;
124
    }
125
126
    /**
127
     * @param string|null $reference
128
     */
129
    public function setReference($reference)
130
    {
131
        $this->reference = $reference;
132
    }
133
134
    /**
135
     * @return string|null
136
     */
137
    public function getExternalReference()
138
    {
139
        return $this->externalReference;
140
    }
141
142
    /**
143
     * @param string|null $externalReference
144
     */
145
    public function setExternalReference($externalReference)
146
    {
147
        $this->externalReference = $externalReference;
148
    }
149
150
    /**
151
     * @return string
152
     */
153
    public function getBarcode()
154
    {
155
        return $this->barcode;
156
    }
157
158
    /**
159
     * @param string $barcode
160
     */
161
    public function setBarcode($barcode)
162
    {
163
        $this->barcode = $barcode;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getLabel()
170
    {
171
        return $this->label;
172
    }
173
174
    /**
175
     * @param string $label
176
     */
177
    public function setLabel($label)
178
    {
179
        $this->label = $label;
180
    }
181
182
    /**
183
     * @return string
184
     */
185
    public function getDescription()
186
    {
187
        return $this->description;
188
    }
189
190
    /**
191
     * @param string $description
192
     */
193
    public function setDescription($description)
194
    {
195
        $this->description = $description;
196
    }
197
198
    /**
199
     * @return int
200
     */
201
    public function getRealStock()
202
    {
203
        return $this->realStock;
204
    }
205
206
    /**
207
     * @param int $realStock
208
     */
209
    public function setRealStock($realStock)
210
    {
211
        $this->realStock = $realStock;
212
    }
213
214
    /**
215
     * @return bool
216
     */
217
    public function isBatchUsage()
218
    {
219
        return $this->batchUsage;
220
    }
221
222
    /**
223
     * @param bool $batchUsage
224
     */
225
    public function setBatchUsage($batchUsage)
226
    {
227
        $this->batchUsage = $batchUsage;
228
    }
229
230
    /**
231
     * @return float
232
     */
233
    public function getPriceHt()
234
    {
235
        return $this->priceHt;
236
    }
237
238
    /**
239
     * @return float
240
     */
241
    public function getPriceTtc()
242
    {
243
        return $this->priceTtc;
244
    }
245
246
    /**
247
     * @return float
248
     */
249
    public function getRateVat()
250
    {
251
        return $this->rateVat;
252
    }
253
}
254