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