Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 6 | public function __construct(\Throwable ...$exceptions) |
|
15 | { |
||
16 | 6 | $this->exceptions = $exceptions; |
|
17 | 6 | $count = count($exceptions); |
|
18 | 6 | $message = $count === 1 ? 'One exception was thrown.' : $count . ' exceptions were thrown.'; |
|
19 | 6 | parent::__construct($message . $this->getMessageDetails()); |
|
20 | } |
||
48 |