Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 7 | public function addInformationArray(array $informations, bool $isHead = false): InformationWrapper |
|
33 | { |
||
34 | 7 | if ($isHead) { |
|
35 | 1 | $this->informations = array_merge($informations, $this->informations); |
|
36 | } else { |
||
37 | 7 | $this->informations = array_merge($this->informations, $informations); |
|
38 | } |
||
39 | |||
40 | 7 | return $this; |
|
41 | } |
||
70 |