Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | trait OrdersTrait |
||
16 | { |
||
17 | |||
18 | use ArrayCollectionToArrayTrait; |
||
19 | |||
20 | /** @var ArrayCollection $orders */ |
||
21 | private $orders; |
||
22 | |||
23 | /** |
||
24 | * @return ArrayCollection |
||
25 | */ |
||
26 | public function getOrders(): ArrayCollection |
||
27 | { |
||
28 | return $this->orders; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param ArrayCollection $orders |
||
33 | */ |
||
34 | public function setOrders(ArrayCollection $orders) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param OrderInterface|null $order |
||
41 | */ |
||
42 | public function addOrder(OrderInterface $order): void |
||
45 | } |
||
46 | |||
47 | protected function ordersToArray(): array |
||
50 | } |
||
51 | } |
||
52 |