Passed
Push — master ( c1644d...484cfe )
by Laurent
09:33
created

Product::setBatchUsage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
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
     * @return string
80
     */
81
    public function getId()
82
    {
83
        return $this->id;
84
    }
85
86
    /**
87
     * @param string $id
88
     */
89
    public function setId($id)
90
    {
91
        $this->id = $id;
92
    }
93
94
    /**
95
     * @return string|null
96
     */
97
    public function getReference()
98
    {
99
        return $this->reference;
100
    }
101
102
    /**
103
     * @param string|null $reference
104
     */
105
    public function setReference($reference)
106
    {
107
        $this->reference = $reference;
108
    }
109
110
    /**
111
     * @return string|null
112
     */
113
    public function getExternalReference()
114
    {
115
        return $this->externalReference;
116
    }
117
118
    /**
119
     * @param string|null $externalReference
120
     */
121
    public function setExternalReference($externalReference)
122
    {
123
        $this->externalReference = $externalReference;
124
    }
125
126
    /**
127
     * @return string
128
     */
129
    public function getBarcode()
130
    {
131
        return $this->barcode;
132
    }
133
134
    /**
135
     * @param string $barcode
136
     */
137
    public function setBarcode($barcode)
138
    {
139
        $this->barcode = $barcode;
140
    }
141
142
    /**
143
     * @return string
144
     */
145
    public function getLabel()
146
    {
147
        return $this->label;
148
    }
149
150
    /**
151
     * @param string $label
152
     */
153
    public function setLabel($label)
154
    {
155
        $this->label = $label;
156
    }
157
158
    /**
159
     * @return string
160
     */
161
    public function getDescription()
162
    {
163
        return $this->description;
164
    }
165
166
    /**
167
     * @param string $description
168
     */
169
    public function setDescription($description)
170
    {
171
        $this->description = $description;
172
    }
173
174
    /**
175
     * @return int
176
     */
177
    public function getRealStock()
178
    {
179
        return $this->realStock;
180
    }
181
182
    /**
183
     * @param int $realStock
184
     */
185
    public function setRealStock($realStock)
186
    {
187
        $this->realStock = $realStock;
188
    }
189
190
    /**
191
     * @return bool
192
     */
193
    public function isBatchUsage()
194
    {
195
        return $this->batchUsage;
196
    }
197
198
    /**
199
     * @param bool $batchUsage
200
     */
201
    public function setBatchUsage($batchUsage)
202
    {
203
        $this->batchUsage = $batchUsage;
204
    }
205
}
206