ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LabelledValue.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
27 protected string $value;
28 protected string $label;
29
30 public function __construct(
31 string $value,
32 string $label
33 ) {
34 $this->value = $value;
35 $this->label = $label;
36 }
37
38 public function value(): string
39 {
40 return $this->value;
41 }
42
43 public function presentableLabel(): string
44 {
45 return $this->label;
46 }
47}
presentableLabel()
The translated label of the value, that can be presented to the user.
value()
The value as it should be written into LOM.