| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class AfterLineItemRemovedEvent implements ShopwareSalesChannelEvent |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $lineItems; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Cart |
||
| 19 | */ |
||
| 20 | protected $cart; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var SalesChannelContext |
||
| 24 | */ |
||
| 25 | protected $salesChannelContext; |
||
| 26 | |||
| 27 | public function __construct(array $lineItems, Cart $cart, SalesChannelContext $salesChannelContext) |
||
| 28 | { |
||
| 29 | $this->lineItems = $lineItems; |
||
| 30 | $this->cart = $cart; |
||
| 31 | $this->salesChannelContext = $salesChannelContext; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getLineItems(): array |
||
| 35 | { |
||
| 36 | return $this->lineItems; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getCart(): Cart |
||
| 40 | { |
||
| 41 | return $this->cart; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getContext(): Context |
||
| 45 | { |
||
| 46 | return $this->salesChannelContext->getContext(); |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getSalesChannelContext(): SalesChannelContext |
||
| 52 | } |
||
| 53 | } |
||
| 54 |