ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LabelledValue.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
value()
The value as it should be written into LOM.
presentableLabel()
The translated label of the value, that can be presented to the user.