| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 42.86% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class CompositeException extends Exception |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Throwable[] |
||
| 17 | */ |
||
| 18 | public array $rest; |
||
| 19 | |||
| 20 | 1 | public function __construct( |
|
| 21 | private Throwable $first, |
||
| 22 | Throwable ...$rest, |
||
| 23 | ) { |
||
| 24 | 1 | $this->rest = $rest; |
|
| 25 | 1 | parent::__construct($first->getMessage(), (int) $first->getCode(), $first); |
|
| 26 | } |
||
| 27 | |||
| 28 | public function getFirstException(): Throwable |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return Throwable[] |
||
| 35 | */ |
||
| 36 | public function getPreviousExceptions(): array |
||
| 39 | } |
||
| 40 | } |
||
| 41 |