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\Document\Event;
use Shopware\Core\Checkout\Document\Struct\DocumentGenerateOperation;
use Shopware\Core\Checkout\Order\OrderCollection;
use Shopware\Core\Framework\Context;
use Symfony\Contracts\EventDispatcher\Event;
/**
* @package customer-order
*/
abstract class DocumentOrderEvent extends Event
{
private OrderCollection $orders;
* @var DocumentGenerateOperation[]
private array $operations;
private Context $context;
* @param DocumentGenerateOperation[] $operations
public function __construct(OrderCollection $orders, Context $context, array $operations = [])
$this->orders = $orders;
$this->context = $context;
$this->operations = $operations;
}
* @return DocumentGenerateOperation[]
public function getOperations(): array
return $this->operations;
public function getContext(): Context
return $this->context;
public function getOrders(): OrderCollection
return $this->orders;