<?php

namespace App\Domain\Booking\Exceptions;

use Exception;

class SlotUnavailableException extends Exception
{
    public static function taken(): self
    {
        return new self(__('That time was just booked. Please pick another slot.'));
    }

    public static function outsideWorkingHours(): self
    {
        return new self(__('That time is outside the dentist\'s working hours.'));
    }

    public static function inThePast(): self
    {
        return new self(__('Appointments cannot be booked in the past.'));
    }
}
