<?php

namespace App\Domain\Attendance\Events;

use App\Domain\Participant\Models\Participant;
use Illuminate\Contracts\Events\ShouldDispatchAfterCommit;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class AttendanceThresholdBreached implements ShouldDispatchAfterCommit
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public Participant $participant,
        public float $rate,
        public float $threshold,
    ) {}
}
