| Total Complexity | 7 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class AbstractEnvelope implements EnvelopeInterface |
||
| 10 | { |
||
| 11 | protected array $metadata = []; |
||
| 12 | private MessageInterface $message; |
||
| 13 | |||
| 14 | public function __construct(MessageInterface $message) |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getMessage(): MessageInterface |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getHandlerName(): string |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getData(): mixed |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getMetadata(): array |
||
| 52 | ); |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Metadata of the envelope |
||
| 57 | * |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | abstract protected function getEnvelopeMetadata(): array; |
||
| 61 | } |
||
| 62 |