<?php

namespace App\Enum\Communication;

enum AgentAvailabilityStatus: string
{
    case Available = 'available';
    case Busy = 'busy';
    case Offline = 'offline';
    case DoNotDisturb = 'do_not_disturb';
    case WrapUp = 'wrap_up';

    public function canReceiveCalls(): bool
    {
        return match ($this) {
            self::Available => true,
            default => false,
        };
    }
}