Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | final class CollectionExtractor implements Extractor |
||
11 | { |
||
12 | private $next; |
||
13 | |||
14 | private function __construct(Extractor $next) |
||
15 | { |
||
16 | $this->next = $next; |
||
17 | } |
||
18 | |||
19 | public static function withAlternative(Extractor $next): Extractor |
||
20 | { |
||
21 | return new self($next); |
||
22 | } |
||
23 | |||
24 | public function extract( |
||
45 | ); |
||
46 | } |
||
47 | } |
||
48 |