for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Shopware\Core\Checkout\Cart\Event;
use Shopware\Core\Checkout\Cart\Cart;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
use Symfony\Contracts\EventDispatcher\Event;
class CartMergedEvent extends Event
{
/**
* @var Cart
*/
protected $cart;
* @var SalesChannelContext
protected $context;
public function __construct(Cart $cart, SalesChannelContext $context)
$this->cart = $cart;
$this->context = $context;
}
public function getCart(): Cart
return $this->cart;
public function getContext(): SalesChannelContext
return $this->context;