Completed
Pull Request — master (#1)
by Laurent
04:28
created

Product::setDescription()   A

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
     * @return string
72
     */
73
    public function getId()
74
    {
75
        return $this->id;
76
    }
77
78
    /**
79
     * @param string $id
80
     */
81
    public function setId($id)
82
    {
83
        $this->id = $id;
84
    }
85
86
    /**
87
     * @return string|null
88
     */
89
    public function getReference()
90
    {
91
        return $this->reference;
92
    }
93
94
    /**
95
     * @param string|null $reference
96
     */
97
    public function setReference($reference)
98
    {
99
        $this->reference = $reference;
100
    }
101
102
    /**
103
     * @return string|null
104
     */
105
    public function getExternalReference()
106
    {
107
        return $this->externalReference;
108
    }
109
110
    /**
111
     * @param string|null $externalReference
112
     */
113
    public function setExternalReference($externalReference)
114
    {
115
        $this->externalReference = $externalReference;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getBarcode()
122
    {
123
        return $this->barcode;
124
    }
125
126
    /**
127
     * @param string $barcode
128
     */
129
    public function setBarcode($barcode)
130
    {
131
        $this->barcode = $barcode;
132
    }
133
134
    /**
135
     * @return string
136
     */
137
    public function getLabel()
138
    {
139
        return $this->label;
140
    }
141
142
    /**
143
     * @param string $label
144
     */
145
    public function setLabel($label)
146
    {
147
        $this->label = $label;
148
    }
149
150
    /**
151
     * @return string
152
     */
153
    public function getDescription()
154
    {
155
        return $this->description;
156
    }
157
158
    /**
159
     * @param string $description
160
     */
161
    public function setDescription($description)
162
    {
163
        $this->description = $description;
164
    }
165
166
    /**
167
     * @return int
168
     */
169
    public function getRealStock()
170
    {
171
        return $this->realStock;
172
    }
173
174
    /**
175
     * @param int $realStock
176
     */
177
    public function setRealStock($realStock)
178
    {
179
        $this->realStock = $realStock;
180
    }
181
}
182