Total Complexity | 10 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Coverage | 90.48% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class InformationWrapper |
||
8 | { |
||
9 | /** @var array<string> */ |
||
10 | private array $informations; |
||
11 | |||
12 | /** |
||
13 | * @param array<string> $informations |
||
14 | */ |
||
15 | 28 | public function __construct(array $informations = []) |
|
16 | { |
||
17 | 28 | $this->informations = $informations; |
|
18 | } |
||
19 | |||
20 | 13 | public function addInformation(?string $information): InformationWrapper |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param array<string> $informations |
||
31 | */ |
||
32 | 7 | public function addInformationArray(array $informations, bool $isHead = false): InformationWrapper |
|
41 | } |
||
42 | |||
43 | 2 | public function addInformationWrapper(?InformationWrapper $informations, bool $isHead = false): InformationWrapper |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return array<string> |
||
54 | */ |
||
55 | 25 | public function getInformations(): array |
|
58 | } |
||
59 | |||
60 | public function getInformationsAsString(): string |
||
63 | } |
||
64 | |||
65 | 2 | public function isEmpty(): bool |
|
70 |