Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
65 | 4 | private function __construct(\DateTime $time, array $accepted, array $delivered, array $failed, array $complained) |
|
66 | { |
||
67 | 4 | $this->time = $time; |
|
68 | 4 | $this->accepted = $accepted; |
|
69 | 4 | $this->delivered = $delivered; |
|
70 | 4 | $this->failed = $failed; |
|
71 | 4 | $this->complained = $complained; |
|
72 | 4 | } |
|
73 | |||
114 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: