ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Field.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23class 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 {
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