Completed
Push — Recipes ( 630f49...c8afb0 )
by Laurent
12:15 queued 03:48
created

InventoryArticles::setZoneStorage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * Entity InventoryArticles.
5
 *
6
 * PHP Version 7
7
 *
8
 * @author    Quétier Laurent <[email protected]>
9
 * @copyright 2014 Dev-Int GLSR
10
 * @license   http://opensource.org/licenses/gpl-license.php GNU Public License
11
 *
12
 * @version GIT: <git_id>
13
 *
14
 * @link https://github.com/Dev-Int/glsr
15
 */
16
namespace  App\Entity\Stocks;
17
18
use Doctrine\ORM\Mapping as ORM;
19
20
/**
21
 * InventoryArticles entity.
22
 *
23
 * @ORM\Table(name="gs_inventory_articles")
24
 * @ORM\Entity(repositoryClass="App\Repository\Stocks\InventoryArticlesRepository")
25
 */
26
class InventoryArticles
27
{
28
    /**
29
     * @var integer $artsId
30
     *
31
     * @ORM\Column(name="id", type="integer")
32
     * @ORM\Id
33
     * @ORM\GeneratedValue(strategy="AUTO")
34
     */
35
    private $artsId;
36
37
    /**
38
     * @var Inventory $inventory Inventory id
39
     *
40
     * @ORM\ManyToOne(targetEntity="App\Entity\Stocks\Inventory", inversedBy="articles")
41
     * @ORM\JoinColumn(nullable=false)
42
     */
43
    private $inventory;
44
45
    /**
46
     * @var Article $article Article id
47
     *
48
     * @ORM\ManyToOne(targetEntity="App\Entity\Settings\Article")
49
     * @ORM\JoinColumn(nullable=false)
50
     */
51
    private $article;
52
53
    /**
54
     * @var decimal $quantity Quantity in theoretical stock
55
     *
56
     * @ORM\Column(name="quantity", type="decimal", precision=7, scale=3, nullable=true, options={"default":0})
57
     */
58
    private $quantity;
59
60
    /**
61
     * @var decimal $realstock Quantity in real stock
62
     *
63
     * @ORM\Column(name="realstock", type="decimal", precision=7, scale=3, options={"default" = 0})
64
     */
65
    private $realstock;
66
67
    /**
68
     * @var string|\App\Entity\Settings\Diverse\Unit $unitStorage Storage unit
69
     *
70
     * @ORM\ManyToOne(targetEntity="App\Entity\Settings\Diverse\Unit")
71
     * @ORM\JoinColumn(nullable=false)
72
     */
73
    private $unitStorage;
74
75
    /**
76
     * @var decimal $price Price of the article
77
     *
78
     * @ORM\Column(name="price", type="decimal", precision=7, scale=3, nullable=true)
79
     */
80
    private $price;
81
82
    /**
83
     * @var string $zoneStorage Storage area
84
     *
85
     * @ORM\Column(name="zoneStorage", type="string", length=255, nullable=true)
86
     */
87
    private $zoneStorage;
88
89
90
    /**
91
     * Get id
92
     *
93
     * @return integer
94
     */
95
    public function getId()
96
    {
97
        return $this->artsId;
98
    }
99
100
    /**
101
     * Set inventory
102
     *
103
     * @param \App\Entity\Stocks\Inventory $inventory
104
     * @return InventoryArticles
105
     */
106
    public function setInventory(\App\Entity\Stocks\Inventory $inventory)
107
    {
108
        $this->inventory = $inventory;
109
110
        return $this;
111
    }
112
113
    /**
114
     * Get inventory
115
     *
116
     * @return \App\Entity\Stocks\Inventory
117
     */
118
    public function getInventory()
119
    {
120
        return $this->inventory;
121
    }
122
123
    /**
124
     * Set article
125
     *
126
     * @param \App\Entity\Settings\Article $article
127
     * @return InventoryArticles
128
     */
129
    public function setArticle(\App\Entity\Settings\Article $article)
130
    {
131
        $this->article = $article;
0 ignored issues
show
Documentation Bug introduced by
It seems like $article of type object<App\Entity\Settings\Article> is incompatible with the declared type object<App\Entity\Stocks\Article> of property $article.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
132
133
        return $this;
134
    }
135
136
    /**
137
     * Get article
138
     *
139
     * @return \App\Entity\Settings\Article
140
     */
141
    public function getArticle()
142
    {
143
        return $this->article;
144
    }
145
146
    /**
147
     * Set realstock
148
     *
149
     * @param string $realstock
150
     * @return InventoryArticles
151
     */
152
    public function setRealstock($realstock)
153
    {
154
        $this->realstock = $realstock;
0 ignored issues
show
Documentation Bug introduced by
It seems like $realstock of type string is incompatible with the declared type object<App\Entity\Stocks\decimal> of property $realstock.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
155
156
        return $this;
157
    }
158
159
    /**
160
     * Get realstock
161
     *
162
     * @return string
163
     */
164
    public function getRealstock()
165
    {
166
        return $this->realstock;
167
    }
168
169
    /**
170
     * Set Price
171
     *
172
     * @param string $price
173
     * @return InventoryArticles
174
     */
175
    public function setPrice($price)
176
    {
177
        $this->price = $price;
0 ignored issues
show
Documentation Bug introduced by
It seems like $price of type string is incompatible with the declared type object<App\Entity\Stocks\decimal> of property $price.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
178
179
        return $this;
180
    }
181
182
    /**
183
     * Get Price
184
     *
185
     * @return string
186
     */
187
    public function getPrice()
188
    {
189
        return $this->price;
190
    }
191
192
    /**
193
     * Set quantity
194
     *
195
     * @param decimal $quantity
196
     * @return InventoryArticles
197
     */
198
    public function setQuantity($quantity)
199
    {
200
        $this->quantity = $quantity;
201
202
        return $this;
203
    }
204
205
    /**
206
     * Get quantity
207
     *
208
     * @return decimal
209
     */
210
    public function getQuantity()
211
    {
212
        return $this->quantity;
213
    }
214
215
    /**
216
     * Set unitStorage
217
     *
218
     * @param null|\App\Entity\Settings\Diverse\Unit $unitStorage
219
     * @return InventoryArticles
220
     */
221
    public function setUnitStorage(\App\Entity\Settings\Diverse\Unit $unitStorage = null)
222
    {
223
        $this->unitStorage = $unitStorage;
224
225
        return $this;
226
    }
227
228
    /**
229
     * Get unitStorage
230
     *
231
     * @return string|\App\Entity\Settings\Diverse\Unit
232
     */
233
    public function getUnitStorage()
234
    {
235
        return $this->unitStorage;
236
    }
237
238
    /**
239
     * Set zoneStorage
240
     *
241
     * @param string $zoneStorage
242
     * @return InventoryArticles
243
     */
244
    public function setZoneStorage($zoneStorage = null)
245
    {
246
        $this->zoneStorage = $zoneStorage;
247
248
        return $this;
249
    }
250
251
    /**
252
     * Get zoneStorage
253
     *
254
     * @return string
255
     */
256
    public function getZoneStorage()
257
    {
258
        return $this->zoneStorage;
259
    }
260
}
261