protected function buildEmbeddedCollection(array $rows): Collection
    {
        return collect($rows)->map(function ($attributes) {
            return $this->buildEmbeddedObject($attributes);
        });
    }
protected function buildEmbeddedCollection(array $rows): Collection
    {
        return collect($rows)->map(function ($attributes) {
            return $this->buildEmbeddedObject($attributes);
        });
    }
protected function buildEmbeddedCollection ( array $ rows ) : Collection { return collect ( $ rows ) -> map ( function ( $ attributes ) { return $ this -> buildEmbeddedObject ( $ attributes ) ; } ) ; }
Build an embedded collection and returns it.

@param array $rows

@return Collection
Build an embedded collection and returns it .