| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | class LineItemRemovedEvent extends Event /*implements ShopwareSalesChannelEvent*/ |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var LineItem |
||
| 17 | */ |
||
| 18 | protected $lineItem; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Cart |
||
| 22 | */ |
||
| 23 | protected $cart; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var SalesChannelContext |
||
| 27 | */ |
||
| 28 | protected $context; |
||
| 29 | |||
| 30 | public function __construct(LineItem $lineItem, Cart $cart, SalesChannelContext $context) |
||
| 31 | { |
||
| 32 | $this->lineItem = $lineItem; |
||
| 33 | $this->cart = $cart; |
||
| 34 | $this->context = $context; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getLineItem(): LineItem |
||
| 38 | { |
||
| 39 | return $this->lineItem; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getCart(): Cart |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @deprecated tag:v6.4.0 - Will return Shopware\Core\Framework\Context instead |
||
| 49 | */ |
||
| 50 | public function getContext(): SalesChannelContext |
||
| 53 | } |
||
| 54 | |||
| 55 | public function getSalesChannelContext(): SalesChannelContext |
||
| 58 | } |
||
| 59 | } |
||
| 60 |