<?php

namespace App\Domain\Training\Events;

use App\Domain\Training\Models\Enrollment;
use App\Models\User;
use Illuminate\Contracts\Events\ShouldDispatchAfterCommit;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class EnrollmentTransferred implements ShouldDispatchAfterCommit
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public Enrollment $oldEnrollment,
        public Enrollment $newEnrollment,
        public User $actor,
    ) {}
}
