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