Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
34 | private function __construct(string $message, array $tweets) |
||
35 | { |
||
36 | foreach ($tweets as $tweet) { |
||
37 | if (!$tweet instanceof Tweet) { |
||
38 | throw new InvalidArgumentException('All tweets must be an instance of '.Tweet::class); |
||
39 | } |
||
40 | } |
||
41 | |||
42 | $this->message = $message; |
||
43 | $this->tweets = $tweets; |
||
44 | } |
||
45 | |||
85 |