ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
KeyValue.php
Go to the documentation of this file.
1<?php
17declare(strict_types=1);
18
20
21use ILIAS\UI\Component\Tree\Node\KeyValue as KeyValueInterface;
23
27class KeyValue extends Simple implements KeyValueInterface
28{
29 private string $value;
30
31 public function __construct(string $label, string $value, ?Icon $icon = null)
32 {
33 parent::__construct($label, $icon);
34
35 $this->value = $value;
36 }
37
38 public function getValue() : string
39 {
40 return $this->value;
41 }
42}
__construct(string $label, string $value, ?Icon $icon=null)
Definition: KeyValue.php:31
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:29
This describes a tree node in which the label is complemented by an additional string,...
Definition: KeyValue.php:26
This describes a very basic Tree Node.
Definition: Simple.php:29
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc