ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Range.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
25enum Range: string
26{
27 case InRange = 'i';
28 case OutOfRange = 'o';
29 case BelowRange = 'b';
30 case AboveRange = 'a';
31
32 public function getLabel(
34 ): string {
35 return match($this) {
36 self::InRange => $lng->txt('in_range'),
37 self::OutOfRange => $lng->txt('out_of_range'),
38 self::BelowRange => $lng->txt('below_range'),
39 self::AboveRange => $lng->txt('above_range')
40 };
41 }
global $lng
Definition: privfeed.php:26