<?php

namespace App\Listeners;

use App\Services\Attendance\AttendanceConsequenceService;

class AttendanceConsequenceListener
{
    public function __construct(private AttendanceConsequenceService $service)
    {
    }

    public function followUp(array $payload): void
    {
        $this->service->sendFollowUp($payload);
    }

    public function finalWarning(array $payload): void
    {
        $this->service->sendFinalWarning($payload);
    }

    public function dismissal(array $payload): void
    {
        $this->service->sendDismissal($payload);
    }
}
