ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Signal.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
addOption(string $key, $value)
Definition: Signal.php:55
getId()
Get the ID of this signal.
Definition: Signal.php:42
getOptions()
Get the options of this signal.
Definition: Signal.php:47