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\Framework\Context;
use Shopware\Core\Framework\Event\ShopwareSalesChannelEvent;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
class AfterLineItemRemovedEvent implements ShopwareSalesChannelEvent
{
/**
* @var array
*/
protected $lineItems;
* @var Cart
protected $cart;
* @var SalesChannelContext
protected $salesChannelContext;
public function __construct(array $lineItems, Cart $cart, SalesChannelContext $salesChannelContext)
$this->lineItems = $lineItems;
$this->cart = $cart;
$this->salesChannelContext = $salesChannelContext;
}
public function getLineItems(): array
return $this->lineItems;
public function getCart(): Cart
return $this->cart;
public function getContext(): Context
return $this->salesChannelContext->getContext();
public function getSalesChannelContext(): SalesChannelContext
return $this->salesChannelContext;