| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 33.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait EnvelopeTrait |
||
| 8 | { |
||
| 9 | private MessageInterface $message; |
||
| 10 | |||
| 11 | public function getMessage(): MessageInterface |
||
| 12 | { |
||
| 13 | return $this->message; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function withMessage(MessageInterface $message): self |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return class-string<MessageHandlerInterface> |
||
|
|
|||
| 26 | */ |
||
| 27 | 7 | public function getHandler(): string |
|
| 28 | { |
||
| 29 | 7 | return $this->message->getHandler(); |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function getData(): mixed |
|
| 35 | } |
||
| 36 | |||
| 37 | public function getMetadata(): array |
||
| 42 |