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