<?php

declare(strict_types=1);

namespace App\Framework\FeatureFlags;

/**
 * Status of a feature flag
 */
enum FeatureFlagStatus: string
{
    case ENABLED = 'enabled';
    case DISABLED = 'disabled';
    case CONDITIONAL = 'conditional';

    public function isEnabled(): bool
    {
        return $this === self::ENABLED;
    }

    public function isDisabled(): bool
    {
        return $this === self::DISABLED;
    }

    public function isConditional(): bool
    {
        return $this === self::CONDITIONAL;
    }
}
