Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 2 | public function __construct(Throwable $original, Outcome $outcome) |
|
43 | { |
||
44 | 2 | $this->message = $original->getMessage(); |
|
45 | 2 | $this->original = $original; |
|
46 | 2 | $this->failedPages = $outcome->pullFailedPages(); |
|
47 | 2 | $this->items = new LazyCollection(function () use ($outcome) { |
|
48 | 2 | yield from $outcome->pullItems(); |
|
49 | 2 | }); |
|
52 |