Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ArrayEventLink implements EventLinkInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array<mixed> linked array |
||
14 | */ |
||
15 | protected array $data; |
||
16 | |||
17 | /** |
||
18 | * ArrayEventLink constructor |
||
19 | * @param array<mixed> $data |
||
20 | */ |
||
21 | 12 | public function __construct(array $data) |
|
22 | { |
||
23 | 12 | $this->data = $data; |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritDoc} |
||
28 | */ |
||
29 | 1 | public function getId(): string |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritDoc} |
||
36 | */ |
||
37 | 1 | public function getType(): string |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * {@inheritDoc} |
||
44 | */ |
||
45 | 2 | public function getData(): array |
|
50 |