ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Field.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Field implements FieldInterface
24 {
25  protected string $title;
26  protected string $string_value;
27  protected string $html_value;
28 
29  public function __construct(
30  string $title,
31  string $string_value,
32  string $html_value
33  ) {
34  $this->title = $title;
35  $this->string_value = $string_value;
36  $this->html_value = $html_value;
37  }
38 
39  public function presentableTitle(): string
40  {
41  return $this->title;
42  }
43 
44  public function valueAsPresentableString(): string
45  {
46  return $this->string_value;
47  }
48 
49  public function valueAsHTML(): string
50  {
51  return $this->html_value;
52  }
53 }
__construct(string $title, string $string_value, string $html_value)
Definition: Field.php:29