<?php

namespace App\Domain\Financial\Events;

use App\Domain\Financial\Models\Invoice;
use App\Models\User;
use Illuminate\Contracts\Events\ShouldDispatchAfterCommit;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class InvoiceCreated implements ShouldDispatchAfterCommit
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public Invoice $invoice,
        public User $actor,
    ) {}
}
