Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | trait OrdersTrait |
||
15 | { |
||
16 | |||
17 | /** @var ArrayCollection $orders */ |
||
18 | private $orders; |
||
19 | |||
20 | /** |
||
21 | * @return ArrayCollection |
||
22 | */ |
||
23 | public function getOrders(): ArrayCollection |
||
24 | { |
||
25 | return $this->orders; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param OrderInterface|null $order |
||
30 | */ |
||
31 | public function addOrder(OrderInterface $order): void |
||
32 | { |
||
33 | $this->orders->add($order); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param ArrayCollection $orders |
||
38 | */ |
||
39 | public function setOrders(ArrayCollection $orders) |
||
42 | } |
||
43 | } |
||
44 |