TenantAtlas/apps/platform/app/Support/TenantConfiguration/SourceClass.php
Ahmed Darrazi 611b19910e
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 4m27s
feat: migrate tcm first coverage core cutover
2026-06-25 14:54:31 +02:00

31 lines
644 B
PHP

<?php
declare(strict_types=1);
namespace App\Support\TenantConfiguration;
enum SourceClass: string
{
case Tcm = 'tcm';
case GraphV1Fallback = 'graph_v1_fallback';
case GraphBetaExperimental = 'graph_beta_experimental';
/**
* @return list<string>
*/
public static function values(): array
{
return array_map(static fn (self $case): string => $case->value, self::cases());
}
public function isBetaExperimental(): bool
{
return $this === self::GraphBetaExperimental;
}
public function isGraphFallback(): bool
{
return $this === self::GraphV1Fallback;
}
}