feat: call off single disposition as admin with optional notification
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user