26 lines
538 B
PHP
26 lines
538 B
PHP
<?php
|
|
|
|
namespace App\Event;
|
|
|
|
use App\Entity\Disposition;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class DispositionCalledOffEvent extends Event
|
|
{
|
|
public const NAME = 'disposition.called_off';
|
|
|
|
public function __construct(private readonly Disposition $disposition, private readonly bool $sendNotification = false)
|
|
{
|
|
}
|
|
|
|
public function getDisposition(): Disposition
|
|
{
|
|
return $this->disposition;
|
|
}
|
|
|
|
public function isSendNotification(): bool
|
|
{
|
|
return $this->sendNotification;
|
|
}
|
|
}
|