<?php

namespace App\Enums;

enum ProfileVisibility: string
{
    case Public = 'public';
    case Private = 'private';
    case Friends = 'friends';

    public function label(): string
    {
        return match ($this) {
            self::Public => __('enums.profile_visibility.public'),
            self::Private => __('enums.profile_visibility.private'),
            self::Friends => __('enums.profile_visibility.friends'),
        };
    }
}
