1 | <?php |
||
6 | class Event implements EventInterface |
||
7 | { |
||
8 | /** @var string */ |
||
9 | private $name; |
||
10 | |||
11 | /** @var string|object|null */ |
||
12 | private $target; |
||
13 | |||
14 | /** @var array */ |
||
15 | private $params; |
||
16 | |||
17 | /** @var bool */ |
||
18 | private $isPropagationStopped; |
||
19 | |||
20 | /** |
||
21 | * @param string $name |
||
22 | * @param string|object|null $target |
||
23 | * @param array $params |
||
24 | */ |
||
25 | 15 | public function __construct(string $name, $target = null, array $params = []) |
|
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | 3 | public function getName() |
|
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | 3 | public function getTarget() |
|
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | 3 | public function getParams() |
|
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | 2 | public function getParam($name) |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | 2 | public function setName($name) |
|
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | 1 | public function setTarget($target) |
|
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | 1 | public function setParams(array $params) |
|
96 | |||
97 | /** |
||
98 | * @inheritdoc |
||
99 | */ |
||
100 | 2 | public function stopPropagation($flag) |
|
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | 2 | public function isPropagationStopped() |
|
116 | } |
||
117 |