Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
21 | public function extract( |
||
22 | ExtractionRequest $request, |
||
23 | Extractor $baseExtractor = null |
||
24 | ): array { |
||
25 | if ($request->isRecursive()) { |
||
26 | return [PropertyState::with( |
||
27 | (string) $request->name(), |
||
28 | [$request->visitedName()] |
||
29 | )]; |
||
30 | } |
||
31 | return $this->next->extract( |
||
32 | $request->withVisitation(), |
||
33 | $baseExtractor ?: $this |
||
34 | ); |
||
37 |