<?php

namespace App\Events;

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

class DomainProvisioningCompleted
{
    use Dispatchable, SerializesModels;

    public string $provisioningId;
    public array $result;
    public ?int $entityId;
    public ?string $action;

    /**
     * Create a new event instance.
     */
    public function __construct(
        string $provisioningId,
        array $result = [],
        ?int $entityId = null,
        ?string $action = null
    ) {
        $this->provisioningId = $provisioningId;
        $this->result = $result;
        $this->entityId = $entityId;
        $this->action = $action;
    }
}
