Completed
Push — master ( f6fd2e...e2b3a0 )
by Laurent
03:42
created

InventoryArticles::setZoneStorage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
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
    /**
67
     * Get id
68
     *
69
     * @return integer
70
     */
71
    public function getId()
72
    {
73
        return $this->id;
74
    }
75
76
    /**
77
     * Set inventory
78
     *
79
     * @param \AppBundle\Entity\Inventory $inventory
80
     * @return InventoryArticles
81
     */
82
    public function setInventory(\AppBundle\Entity\Inventory $inventory)
83
    {
84
        $this->inventory = $inventory;
85
86
        return $this;
87
    }
88
89
    /**
90
     * Get inventory
91
     *
92
     * @return \AppBundle\Entity\Inventory
93
     */
94
    public function getInventory()
95
    {
96
        return $this->inventory;
97
    }
98
99
    /**
100
     * Set article
101
     *
102
     * @param \AppBundle\Entity\Article $article
103
     * @return InventoryArticles
104
     */
105
    public function setArticle(\AppBundle\Entity\Article $article)
106
    {
107
        $this->article = $article;
108
109
        return $this;
110
    }
111
112
    /**
113
     * Get article
114
     *
115
     * @return \AppBundle\Entity\Article
116
     */
117
    public function getArticle()
118
    {
119
        return $this->article;
120
    }
121
122
    /**
123
     * Set realstock
124
     *
125
     * @param string $realstock
126
     * @return InventoryArticles
127
     */
128
    public function setRealstock($realstock)
129
    {
130
        $this->realstock = $realstock;
131
132
        return $this;
133
    }
134
135
    /**
136
     * Get realstock
137
     *
138
     * @return string
139
     */
140
    public function getRealstock()
141
    {
142
        return $this->realstock;
143
    }
144
145
    /**
146
     * Set Price
147
     *
148
     * @param string $price
149
     * @return InventoryArticles
150
     */
151
    public function setPrice($price)
152
    {
153
        $this->price = $price;
154
155
        return $this;
156
    }
157
158
    /**
159
     * Get Price
160
     *
161
     * @return string
162
     */
163
    public function getPrice()
164
    {
165
        return $this->price;
166
    }
167
168
    /**
169
     * Set quantity
170
     *
171
     * @param decimal $quantity
172
     * @return InventoryArticles
173
     */
174
    public function setQuantity($quantity)
175
    {
176
        $this->quantity = $quantity;
177
178
        return $this;
179
    }
180
181
    /**
182
     * Get quantity
183
     *
184
     * @return decimal
185
     */
186
    public function getQuantity()
187
    {
188
        return $this->quantity;
189
    }
190
191
    /**
192
     * Set unitStorage
193
     *
194
     * @param null|string|\AppBundle\Entity\UnitStorage $unitStorage
0 ignored issues
show
Documentation introduced by
Consider making the type for parameter $unitStorage a bit more specific; maybe use null|UnitStorage.
Loading history...
195
     * @return InventoryArticles
196
     */
197
    public function setUnitStorage(\AppBundle\Entity\UnitStorage $unitStorage = null)
198
    {
199
        $this->unitStorage = $unitStorage;
200
201
        return $this;
202
    }
203
204
    /**
205
     * Get unitStorage
206
     *
207
     * @return string|\AppBundle\Entity\UnitStorage
208
     */
209
    public function getUnitStorage()
210
    {
211
        return $this->unitStorage;
212
    }
213
}
214