| Conditions | 5 | 
| Paths | 7 | 
| Total Lines | 21 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1);  | 
            ||
| 24 | public function extract(  | 
            ||
| 25 | ExtractionRequest $request,  | 
            ||
| 26 | Extractor $base = null  | 
            ||
| 27 |     ): array { | 
            ||
| 28 |         if (!is_object($request->value())) { | 
            ||
| 29 | return $this->next->extract($request, $base);  | 
            ||
| 30 | }  | 
            ||
| 31 | assert($base !== null);  | 
            ||
| 32 | $properties = [];  | 
            ||
| 33 |         foreach (ReflectionProperties::ofThe($request->value()) as $property) { | 
            ||
| 34 | $properties[] = $base->extract(  | 
            ||
| 35 | $request->forProperty($property),  | 
            ||
| 36 | $base  | 
            ||
| 37 | );  | 
            ||
| 38 | }  | 
            ||
| 39 |         if (empty($properties)) { | 
            ||
| 40 | return $request->isTheOwner() ?  | 
            ||
| 41 | [] :  | 
            ||
| 42 | [PropertyState::with((string) $request->objectName(), null)];  | 
            ||
| 43 | }  | 
            ||
| 44 | return these(...$properties);  | 
            ||
| 45 | }  | 
            ||
| 47 |