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