ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
UserDefined.php
Go to the documentation of this file.
1 <?php
2 
18 declare(strict_types=1);
19 
20 namespace ILIAS\Data\Meta\Html;
21 
22 use Generator;
23 
27 class UserDefined extends Tag
28 {
29  public function __construct(
30  protected string $key,
31  protected string $value
32  ) {
33  }
34 
38  public function toHtml(): string
39  {
40  return "<meta name=\"" . htmlspecialchars($this->key) . "\" content=\"" . htmlspecialchars($this->value) . "\" />";
41  }
42 
43  public function getKey(): string
44  {
45  return $this->key;
46  }
47 
48  public function getValue(): string
49  {
50  return $this->value;
51  }
52 }
__construct(protected string $key, protected string $value)
Definition: UserDefined.php:29
string $key
Consumer key/client ID value.
Definition: System.php:193