Completed
Push — master ( 9634ae...e1c0e4 )
by Laurent
19:33 queued 16:12
created

InventoryArticles::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace AppBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * InventoryArticles
9
 *
10
 * @ORM\Table(name="gs_inventory_articles")
11
 * @ORM\Entity(repositoryClass="AppBundle\Entity\InventoryArticlesRepository")
12
 */
13
class InventoryArticles
14
{
15
    /**
16
     * @var integer
17
     *
18
     * @ORM\Column(name="id", type="integer")
19
     * @ORM\Id
20
     * @ORM\GeneratedValue(strategy="AUTO")
21
     */
22
    private $id;
23
24
    /**
25
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Inventory", inversedBy="articles")
26
     * @ORM\JoinColumn(nullable=false)
27
     */
28
    private $inventory;
29
30
    /**
31
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Article")
32
     * @ORM\JoinColumn(nullable=false)
33
     */
34
    private $article;
35
36
    /**
37
     * @var decimal Quantité en stock
38
     *
39
     * @ORM\Column(name="quantity", type="decimal", precision=7, scale=3)
40
     */
41
    private $quantity;
42
43
    /**
44
     * @var string
45
     *
46
     * @ORM\Column(name="realstock", type="decimal", precision=7, scale=3, options={"default" = 0})
47
     */
48
    private $realstock;
49
50
    /**
51
     * @var string|\AppBundle\Entity\UnitStorage Unité de stockage
52
     *
53
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\UnitStorage")
54
     * @ORM\JoinColumn(nullable=false)
55
     */
56
    private $unitStorage;
57
58
    /**
59
     * @var string
60
     *
61
     * @ORM\Column(name="price", type="decimal", precision=7, scale=3, nullable=true)
62
     */
63
    private $price;
64
65
    /**
66
     * @var string $zoneStorage Zone de stockage
67
     *
68
     * @ORM\Column(name="zoneStorage", type="string", length=255, nullable=true)
69
     */
70
    private $zoneStorage;
71
72
73
    /**
74
     * Get id
75
     *
76
     * @return integer
77
     */
78
    public function getId()
79
    {
80
        return $this->id;
81
    }
82
83
    /**
84
     * Set inventory
85
     *
86
     * @param \AppBundle\Entity\Inventory $inventory
87
     * @return InventoryArticles
88
     */
89
    public function setInventory(\AppBundle\Entity\Inventory $inventory)
90
    {
91
        $this->inventory = $inventory;
92
93
        return $this;
94
    }
95
96
    /**
97
     * Get inventory
98
     *
99
     * @return \AppBundle\Entity\Inventory
100
     */
101
    public function getInventory()
102
    {
103
        return $this->inventory;
104
    }
105
106
    /**
107
     * Set article
108
     *
109
     * @param \AppBundle\Entity\Article $article
110
     * @return InventoryArticles
111
     */
112
    public function setArticle(\AppBundle\Entity\Article $article)
113
    {
114
        $this->article = $article;
115
116
        return $this;
117
    }
118
119
    /**
120
     * Get article
121
     *
122
     * @return \AppBundle\Entity\Article
123
     */
124
    public function getArticle()
125
    {
126
        return $this->article;
127
    }
128
129
    /**
130
     * Set realstock
131
     *
132
     * @param string $realstock
133
     * @return InventoryArticles
134
     */
135
    public function setRealstock($realstock)
136
    {
137
        $this->realstock = $realstock;
138
139
        return $this;
140
    }
141
142
    /**
143
     * Get realstock
144
     *
145
     * @return string
146
     */
147
    public function getRealstock()
148
    {
149
        return $this->realstock;
150
    }
151
152
    /**
153
     * Set Price
154
     *
155
     * @param string $price
156
     * @return InventoryArticles
157
     */
158
    public function setPrice($price)
159
    {
160
        $this->price = $price;
161
162
        return $this;
163
    }
164
165
    /**
166
     * Get Price
167
     *
168
     * @return string
169
     */
170
    public function getPrice()
171
    {
172
        return $this->price;
173
    }
174
175
    /**
176
     * Set quantity
177
     *
178
     * @param decimal $quantity
179
     * @return InventoryArticles
180
     */
181
    public function setQuantity($quantity)
182
    {
183
        $this->quantity = $quantity;
184
185
        return $this;
186
    }
187
188
    /**
189
     * Get quantity
190
     *
191
     * @return decimal
192
     */
193
    public function getQuantity()
194
    {
195
        return $this->quantity;
196
    }
197
198
    /**
199
     * Set unitStorage
200
     *
201
     * @param null|\AppBundle\Entity\UnitStorage $unitStorage
202
     * @return InventoryArticles
203
     */
204
    public function setUnitStorage(\AppBundle\Entity\UnitStorage $unitStorage = null)
205
    {
206
        $this->unitStorage = $unitStorage;
207
208
        return $this;
209
    }
210
211
    /**
212
     * Get unitStorage
213
     *
214
     * @return string|\AppBundle\Entity\UnitStorage
215
     */
216
    public function getUnitStorage()
217
    {
218
        return $this->unitStorage;
219
    }
220
221
    /**
222
     * Set zoneStorage
223
     *
224
     * @param string $zoneStorage
225
     * @return InventoryArticles
226
     */
227
    public function setZoneStorage($zoneStorage = null)
228
    {
229
        $this->zoneStorage = $zoneStorage;
230
231
        return $this;
232
    }
233
234
    /**
235
     * Get zoneStorage
236
     *
237
     * @return string
238
     */
239
    public function getZoneStorage()
240
    {
241
        return $this->zoneStorage;
242
    }
243
}
244