TenantAtlas/apps/platform/app/Notifications/OperationRunQueued.php
2026-04-22 22:23:48 +02:00

34 lines
692 B
PHP

<?php
namespace App\Notifications;
use App\Models\OperationRun;
use App\Support\OpsUx\OperationUxPresenter;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
class OperationRunQueued extends Notification
{
use Queueable;
public function __construct(
public OperationRun $run
) {}
/**
* @return array<int, string>
*/
public function via(object $notifiable): array
{
return ['database'];
}
/**
* @return array<string, mixed>
*/
public function toDatabase(object $notifiable): array
{
return OperationUxPresenter::queuedDatabaseNotificationMessage($this->run, $notifiable);
}
}