Files
nette-vite/app/domain/Order/Event/OrderCreated.php
2022-03-12 16:25:30 +01:00

26 lines
378 B
PHP
Executable File

<?php declare(strict_types = 1);
namespace App\Domain\Order\Event;
use Symfony\Contracts\EventDispatcher\Event;
final class OrderCreated extends Event
{
public const NAME = 'order.created';
/** @var string */
private $order;
public function __construct(string $order)
{
$this->order = $order;
}
public function getOrder(): string
{
return $this->order;
}
}