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 |
||
15 | 1 | public function __construct(Throwable ...$exceptions) |
|
16 | { |
||
17 | 1 | $this->exceptions = $exceptions; |
|
18 | 1 | $count = count($exceptions); |
|
19 | 1 | $message = $count === 1 ? 'One exception was thrown.' : $count . ' exceptions were thrown.'; |
|
20 | 1 | parent::__construct($message . $this->getMessageDetails()); |
|
21 | 1 | } |
|
49 |