Init
This commit is contained in:
25
app/domain/Order/Event/OrderCreated.php
Normal file
25
app/domain/Order/Event/OrderCreated.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user