<?php

namespace App\Events;

use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

/**
 * A platform domain event received via the inbound service-events webhook.
 */
class ServiceEventOccurred
{
    use Dispatchable, SerializesModels;

    /**
     * @param  array<string, mixed>  $data
     */
    public function __construct(
        public readonly string $name,
        public readonly array $data = [],
    ) {}
}
