| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 73.91% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait EnvelopeTrait |
||
| 8 | { |
||
| 9 | private MessageInterface $message; |
||
| 10 | |||
| 11 | 4 | public function getMessage(): MessageInterface |
|
| 12 | { |
||
| 13 | 4 | return $this->message; |
|
| 14 | } |
||
| 15 | |||
| 16 | public function withMessage(MessageInterface $message): self |
||
| 22 | } |
||
| 23 | |||
| 24 | 8 | public function getHandlerName(): string |
|
| 25 | { |
||
| 26 | 8 | return $this->message->getHandlerName(); |
|
| 27 | } |
||
| 28 | |||
| 29 | 4 | public function getData(): mixed |
|
| 32 | } |
||
| 33 | |||
| 34 | 12 | public function getMetadata(): array |
|
| 45 | 12 | ); |
|
| 46 | } |
||
| 47 | |||
| 48 | public function getEnvelopeMetadata(): array |
||
| 53 |