1 | <?php |
||
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() |
||
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) |
||
112 | |||
113 | /** |
||
114 | * Get inventory |
||
115 | * |
||
116 | * @return \App\Entity\Stocks\Inventory |
||
117 | */ |
||
118 | public function getInventory() |
||
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) |
||
135 | |||
136 | /** |
||
137 | * Get article |
||
138 | * |
||
139 | * @return \App\Entity\Settings\Article |
||
140 | */ |
||
141 | public function getArticle() |
||
145 | |||
146 | /** |
||
147 | * Set realstock |
||
148 | * |
||
149 | * @param string $realstock |
||
150 | * @return InventoryArticles |
||
151 | */ |
||
152 | public function setRealstock($realstock) |
||
158 | |||
159 | /** |
||
160 | * Get realstock |
||
161 | * |
||
162 | * @return string |
||
163 | */ |
||
164 | public function getRealstock() |
||
168 | |||
169 | /** |
||
170 | * Set Price |
||
171 | * |
||
172 | * @param string $price |
||
173 | * @return InventoryArticles |
||
174 | */ |
||
175 | public function setPrice($price) |
||
181 | |||
182 | /** |
||
183 | * Get Price |
||
184 | * |
||
185 | * @return string |
||
186 | */ |
||
187 | public function getPrice() |
||
191 | |||
192 | /** |
||
193 | * Set quantity |
||
194 | * |
||
195 | * @param decimal $quantity |
||
196 | * @return InventoryArticles |
||
197 | */ |
||
198 | public function setQuantity($quantity) |
||
204 | |||
205 | /** |
||
206 | * Get quantity |
||
207 | * |
||
208 | * @return decimal |
||
209 | */ |
||
210 | public function getQuantity() |
||
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) |
||
227 | |||
228 | /** |
||
229 | * Get unitStorage |
||
230 | * |
||
231 | * @return string|\App\Entity\Settings\Diverse\Unit |
||
232 | */ |
||
233 | public function getUnitStorage() |
||
237 | |||
238 | /** |
||
239 | * Set zoneStorage |
||
240 | * |
||
241 | * @param string $zoneStorage |
||
242 | * @return InventoryArticles |
||
243 | */ |
||
244 | public function setZoneStorage($zoneStorage = null) |
||
250 | |||
251 | /** |
||
252 | * Get zoneStorage |
||
253 | * |
||
254 | * @return string |
||
255 | */ |
||
256 | public function getZoneStorage() |
||
260 | } |
||
261 |
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..