27 lines
638 B
PHP
27 lines
638 B
PHP
<?php
|
|
|
|
namespace App\Actions\Notifications;
|
|
|
|
use App\Enums\NotificationEventType;
|
|
use Illuminate\Contracts\Events\ShouldDispatchAfterCommit;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
final readonly class TicketAssigneeChanged implements NotificationEvent, ShouldDispatchAfterCommit
|
|
{
|
|
use Dispatchable;
|
|
|
|
public function __construct(
|
|
public TicketStatusChangedPayload $payload,
|
|
) {}
|
|
|
|
public function eventType(): NotificationEventType
|
|
{
|
|
return NotificationEventType::TicketAssigneeChanged;
|
|
}
|
|
|
|
public function payload(): NotificationEventPayload
|
|
{
|
|
return $this->payload;
|
|
}
|
|
}
|