Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class Message implements MessageInterface |
||
8 | { |
||
9 | /** |
||
10 | * @param class-string<MessageHandlerInterface> $handler Message handler class name |
||
|
|||
11 | * @param mixed $data Message data, encodable by a queue adapter |
||
12 | * @param array $metadata Message metadata, encodable by a queue adapter |
||
13 | * @param string|null $id Message id |
||
14 | */ |
||
15 | 74 | public function __construct( |
|
20 | 74 | } |
|
21 | |||
22 | 22 | public function getHandler(): string |
|
23 | { |
||
24 | 22 | return $this->handler; |
|
25 | } |
||
26 | |||
27 | 37 | public function getData(): mixed |
|
28 | { |
||
29 | 37 | return $this->data; |
|
30 | } |
||
31 | |||
32 | 29 | public function getMetadata(): array |
|
35 | } |
||
36 | } |
||
37 |