1: <?php
2:
3: namespace LaravelUi5\Core\Enums;
4:
5: /**
6: * Enumeration of supported aggregation levels for KPIs.
7: *
8: * Determines how raw data is grouped and summarized over time.
9: */
10: enum AggregationLevel: int
11: {
12: case Daily = 1;
13: case Weekly = 2;
14: case Monthly = 3;
15: case Quarterly = 4;
16: case Semiannual = 5;
17: case Yearly = 6;
18:
19: /**
20: * Returns a human-readable label for UI or debugging purposes.
21: *
22: * @return string
23: */
24: public function label(): string
25: {
26: return match ($this) {
27: self::Daily => 'Daily',
28: self::Weekly => 'Weekly',
29: self::Monthly => 'Monthly',
30: self::Quarterly => 'Quarterly',
31: self::Semiannual => 'Semiannual',
32: self::Yearly => 'Yearly',
33: };
34: }
35: }
36: