ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Signal.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
30 {
31  protected string $id;
32  protected array $options = array();
33 
34  public function __construct(string $id)
35  {
36  $this->id = $id;
37  }
38 
42  public function getId(): string
43  {
44  return $this->id;
45  }
46 
47  public function getOptions(): array
48  {
49  return $this->options;
50  }
51 
55  public function addOption(string $key, $value): void
56  {
57  $this->options[$key] = $value;
58  }
59 
63  protected function getOption(string $key)
64  {
65  return (isset($this->options[$key])) ? $this->options[$key] : null;
66  }
67 
68  public function __toString(): string
69  {
70  return $this->id;
71  }
72 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addOption(string $key, $value)
Definition: Signal.php:55
string $key
Consumer key/client ID value.
Definition: System.php:193
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
getOptions()
Get the options of this signal.
Definition: Signal.php:47
getId()
Get the ID of this signal.
Definition: Signal.php:42