ldc-bien-etre-animal/app/Events/ContactRequested.php

27 lines
577 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace App\Events;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class ContactRequested
{
2026-08-31 12:40:30 +02:00
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;
2026-09-04 12:15:37 +02:00
/**
* @param array<string, mixed> $data
2026-08-31 12:40:30 +02:00
* @param array{name: string, mime: string, content: string}|null $attachment
*/
public function __construct(
public readonly array $data,
public readonly ?array $attachment = null,
2026-08-31 12:40:30 +02:00
) {
}
}