Files
fuel-price/app/Enums/PredictionSource.php
Ovidiu U 6249ed8fe2
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
refactor: add Enum labels, fix indentation, and add URL links to StatsOverviewWidget
Adds `label()` methods to TrendDirection and PredictionSource enums for cleaner display. Fixes mixed tab/space indentation in StatsOverviewWidget. Links all stats cards to their respective Filament resources (searches, stations, oil-predictions, api-logs). Documents BrentPriceChartWidget's manual registration.
2026-04-05 19:52:12 +01:00

20 lines
363 B
PHP

<?php
namespace App\Enums;
enum PredictionSource: string
{
case Llm = 'llm';
case LlmWithContext = 'llm_with_context';
case Ewma = 'ewma';
public function label(): string
{
return match ($this) {
self::Llm => 'LLM',
self::LlmWithContext => 'LLM+Context',
self::Ewma => 'EWMA',
};
}
}