Total Complexity | 16 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 92.59% |
Changes | 0 |
1 | <?php |
||
10 | final class MessageCollection implements MessageCollectionInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var MessageInterface[] |
||
14 | */ |
||
15 | private array $messages = []; |
||
16 | |||
17 | 3 | public function add(MessageInterface $msg): void |
|
20 | } |
||
21 | |||
22 | 2 | public function addMultiple(array $messages): void |
|
23 | { |
||
24 | 2 | foreach ($messages as $msg) { |
|
25 | 2 | $this->messages[] = $msg; |
|
26 | } |
||
27 | } |
||
28 | |||
29 | 1 | public function getRecipientIds(): array |
|
50 | } |
||
51 | |||
52 | 4 | public function getInformationDump(?int $userId = null): InformationWrapper |
|
74 |