mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Aditya Tripathi <aditya@climactic.co>
31 lines
952 B
PHP
31 lines
952 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Traits\BroadcastsToTeam;
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class ImageScanUpdated implements ShouldBroadcast
|
|
{
|
|
use BroadcastsToTeam, Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
/**
|
|
* @param bool $final False for a progress update of a running scan; pages that show only results ignore it.
|
|
*/
|
|
public function __construct(?int $teamId, public string $resourceUuid, public string $scanUuid, public bool $final = true)
|
|
{
|
|
$this->teamId = $teamId;
|
|
}
|
|
|
|
/**
|
|
* @return array{resourceUuid: string, scanUuid: string, final: bool}
|
|
*/
|
|
public function broadcastWith(): array
|
|
{
|
|
return ['resourceUuid' => $this->resourceUuid, 'scanUuid' => $this->scanUuid, 'final' => $this->final];
|
|
}
|
|
}
|