1 | <?php |
||
27 | class OrdersArticles |
||
28 | { |
||
29 | /** |
||
30 | * @var integer $artId |
||
31 | * |
||
32 | * @ORM\Column(name="id", type="integer") |
||
33 | * @ORM\Id |
||
34 | * @ORM\GeneratedValue(strategy="AUTO") |
||
35 | */ |
||
36 | private $artId; |
||
37 | |||
38 | /** |
||
39 | * @var Orders $orders |
||
40 | * |
||
41 | * @ORM\ManyToOne(targetEntity="App\Entity\Orders\Orders", inversedBy="articles") |
||
42 | * @ORM\JoinColumn(nullable=false) |
||
43 | */ |
||
44 | private $orders; |
||
45 | |||
46 | /** |
||
47 | * @var Article $articles |
||
48 | * |
||
49 | * @ORM\ManyToOne(targetEntity="App\Entity\Settings\Article") |
||
50 | * @ORM\JoinColumn(nullable=false) |
||
51 | */ |
||
52 | private $article; |
||
53 | |||
54 | /** |
||
55 | * @var string $quantity Quantity for the order |
||
56 | * |
||
57 | * @ORM\Column(name="quantity", type="decimal", precision=7, scale=3) |
||
58 | */ |
||
59 | private $quantity; |
||
60 | |||
61 | /** |
||
62 | * @var string|\App\Entity\Settings\Diverse\Unit $unitStorage Storage unit |
||
63 | * |
||
64 | * @ORM\ManyToOne(targetEntity="App\Entity\Settings\Diverse\Unit") |
||
65 | * @ORM\JoinColumn(nullable=false) |
||
66 | */ |
||
67 | private $unitStorage; |
||
68 | |||
69 | /** |
||
70 | * @var string $price Price of article |
||
71 | * |
||
72 | * @ORM\Column(name="price", type="decimal", precision=7, scale=3, nullable=true) |
||
73 | */ |
||
74 | private $price; |
||
75 | |||
76 | /** |
||
77 | * @var string|\App\Entity\Settings\Diverse\Tva $tva Rate of VAT |
||
78 | * |
||
79 | * @ORM\ManyToOne(targetEntity="App\Entity\Settings\Diverse\Tva") |
||
80 | * @ORM\JoinColumn(nullable=false) |
||
81 | */ |
||
82 | private $tva; |
||
83 | |||
84 | |||
85 | public function __construct() |
||
89 | |||
90 | /** |
||
91 | * Get id |
||
92 | * |
||
93 | * @return integer |
||
94 | */ |
||
95 | public function getId() |
||
99 | |||
100 | /** |
||
101 | * Set quantity |
||
102 | * |
||
103 | * @param string $quantity |
||
104 | * @return OrdersArticles |
||
105 | */ |
||
106 | public function setQuantity($quantity) |
||
112 | |||
113 | /** |
||
114 | * Get quantity |
||
115 | * |
||
116 | * @return string |
||
117 | */ |
||
118 | public function getQuantity() |
||
122 | |||
123 | /** |
||
124 | * Set price |
||
125 | * |
||
126 | * @param string $price |
||
127 | * @return OrdersArticles |
||
128 | */ |
||
129 | public function setPrice($price) |
||
135 | |||
136 | /** |
||
137 | * Get price |
||
138 | * |
||
139 | * @return string |
||
140 | */ |
||
141 | public function getPrice() |
||
145 | |||
146 | /** |
||
147 | * Set orders |
||
148 | * |
||
149 | * @param \App\Entity\Orders\Orders $orders |
||
150 | * @return OrdersArticles |
||
151 | */ |
||
152 | public function setOrders(Orders $orders) |
||
158 | |||
159 | /** |
||
160 | * Get orders |
||
161 | * |
||
162 | * @return \App\Entity\Orders\Orders |
||
163 | */ |
||
164 | public function getOrders() |
||
168 | |||
169 | /** |
||
170 | * Set article |
||
171 | * |
||
172 | * @param \App\Entity\Settings\Article $article |
||
173 | * @return OrdersArticles |
||
174 | */ |
||
175 | public function setArticle(\App\Entity\Settings\Article $article) |
||
181 | |||
182 | /** |
||
183 | * Get article |
||
184 | * |
||
185 | * @return \App\Entity\Settings\Article |
||
186 | */ |
||
187 | public function getArticle() |
||
191 | |||
192 | /** |
||
193 | * Set unitStorage |
||
194 | * |
||
195 | * @param \App\Entity\Settings\Diverse\Unit $unitStorage |
||
196 | * @return OrdersArticles |
||
197 | */ |
||
198 | public function setUnitStorage(\App\Entity\Settings\Diverse\Unit $unitStorage) |
||
204 | |||
205 | /** |
||
206 | * Get unitStorage |
||
207 | * |
||
208 | * @return \App\Entity\Settings\Diverse\Unit |
||
209 | */ |
||
210 | public function getUnitStorage() |
||
214 | |||
215 | /** |
||
216 | * Set tva |
||
217 | * |
||
218 | * @param \App\Entity\Settings\Diverse\Tva $tva |
||
219 | * @return OrdersArticles |
||
220 | */ |
||
221 | public function setTva(\App\Entity\Settings\Diverse\Tva $tva) |
||
227 | |||
228 | /** |
||
229 | * Get tva |
||
230 | * |
||
231 | * @return \App\Entity\Settings\Diverse\Tva |
||
232 | */ |
||
233 | public function getTva() |
||
237 | } |
||
238 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.