<?php

declare(strict_types=1);

namespace App\Administration\Domain\Model\User;

enum ImageRightsStatus: string
{
    case AUTHORIZED = 'authorized';
    case REFUSED = 'refused';
    case NOT_SPECIFIED = 'not_specified';

    public function label(): string
    {
        return match ($this) {
            self::AUTHORIZED => 'Autorisé',
            self::REFUSED => 'Refusé',
            self::NOT_SPECIFIED => 'Non renseigné',
        };
    }

    public function estAutorise(): bool
    {
        return $this === self::AUTHORIZED;
    }
}
