| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | abstract class DocumentOrderEvent extends Event |
||
| 14 | { |
||
| 15 | private OrderCollection $orders; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var DocumentGenerateOperation[] |
||
| 19 | */ |
||
| 20 | private array $operations; |
||
| 21 | |||
| 22 | private Context $context; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param DocumentGenerateOperation[] $operations |
||
| 26 | */ |
||
| 27 | public function __construct(OrderCollection $orders, Context $context, array $operations = []) |
||
| 28 | { |
||
| 29 | $this->orders = $orders; |
||
| 30 | $this->context = $context; |
||
| 31 | $this->operations = $operations; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return DocumentGenerateOperation[] |
||
| 36 | */ |
||
| 37 | public function getOperations(): array |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getContext(): Context |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getOrders(): OrderCollection |
||
| 52 |