Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class IdEnvelope implements EnvelopeInterface |
||
11 | { |
||
12 | use EnvelopeTrait; |
||
13 | |||
14 | public const MESSAGE_ID_KEY = 'yii-message-id'; |
||
15 | |||
16 | 13 | public function __construct( |
|
17 | private MessageInterface $message, |
||
18 | private string|int|null $id = null, |
||
19 | ) { |
||
20 | 13 | } |
|
21 | |||
22 | public function setId(string|int|null $id): void |
||
23 | { |
||
24 | $this->id = $id; |
||
25 | } |
||
26 | |||
27 | 12 | public function getId(): string|int|null |
|
30 | } |
||
31 | |||
32 | 12 | private function getEnvelopeMetadata(): array |
|
37 |
This check looks for private methods that have been defined, but are not used inside the class.