src/hydrator/ConfigurableAggregateHydrator.php
public function extractAll(array $array, int $depth = 1)
    {
        $depth--;
        $res = [];
        foreach ($array as $key => $object) {
            $res[$key] = $depth>0 ? $this->extractAll($object, $depth) : $this->extract($object);
        }

        return $res;
    }
public function extractAll(array $array, int $depth = 1)
    {
        $depth--;
        $res = [];
        foreach ($array as $key => $object) {
            $res[$key] = $depth>0 ? $this->extractAll($object, $depth) : $this->extract($object);
        }

        return $res;
    }
public function extractAll ( array $ array , int $ depth = 1 ) { $ depth -- ; $ res = [ ] ; foreach ( $ array as $ key => $ object ) { $ res [ $ key ] = $ depth > 0 ? $ this -> extractAll ( $ object , $ depth ) : $ this -> extract ( $ object ) ; } return $ res ; }
Extract multiple objects.
@param  array $array
@return array
Extract multiple objects .