ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
Range.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Questions\Definitions
;
22
23
use
ILIAS\Language\Language
;
24
25
enum
Range
:
string
26
{
27
case
InRange =
'i'
;
28
case
OutOfRange =
'o'
;
29
case
BelowRange =
'b'
;
30
case
AboveRange =
'a'
;
31
32
public
function
getLabel
(
33
Language
$lng
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
}
42
}
ILIAS\Language\Language
Definition:
Language.php:24
ILIAS\Questions\Definitions
Definition:
Clonable.php:21
ILIAS\Questions\Definitions\getLabel
@ getLabel
Definition:
Range.php:32
ILIAS\Questions\Definitions\Range
Range
Definition:
Range.php:26
$lng
global $lng
Definition:
privfeed.php:26
components
ILIAS
Questions
src
Definitions
Range.php
Generated on Wed Nov 11 2026 23:08:42 for ILIAS by
1.9.4 (using
Doxyfile
)