ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
KeyValue.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
24 
25 class KeyValue extends InterruptiveItem implements KeyValueInterface
26 {
27  protected string $key;
28  protected string $value;
29 
30  public function __construct(
31  string $id,
32  string $key,
33  string $value
34  ) {
36 
37  $this->key = $key;
38  $this->value = $value;
39  }
40 
41  public function getKey(): string
42  {
43  return $this->key;
44  }
45 
46  public function getValue(): string
47  {
48  return $this->value;
49  }
50 }
__construct(string $id, string $key, string $value)
Definition: KeyValue.php:30
getValue()
The value string that will be displayed behind the label of the node.
Definition: KeyValue.php:46
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21