<?php

namespace App\Events;

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

class DomainRegistered
{
    use Dispatchable, SerializesModels;

    /**
     * Olayla ilgili veriler
     */
    public array $params;

    /**
     * İşlem sonucu
     */
    public mixed $result;

    /**
     * Oluşturucu
     *
     * @param  array  $params  İşlem parametreleri
     * @param  mixed  $result  İşlem sonucu
     */
    public function __construct(array $params, mixed $result)
    {
        $this->params = $params;
        $this->result = $result;
    }
}
