<?php

namespace App\Support\Providers;

enum ProviderConnectionType: string
{
    case Platform = 'platform';
    case Dedicated = 'dedicated';

    /**
     * @return array<int, string>
     */
    public static function values(): array
    {
        return array_map(static fn (self $case): string => $case->value, self::cases());
    }

    public function usesDedicatedCredential(): bool
    {
        return $this === self::Dedicated;
    }
}
