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