public function fill(Model $model, Result $result)
    {
        $hits = $result->hits()->map(function ($hit) use ($model) {
            return $this->fillModel($model, $hit);
        });

        $result->setHits($hits);
    }
public function fill(Model $model, Result $result)
    {
        $hits = $result->hits()->map(function ($hit) use ($model) {
            return $this->fillModel($model, $hit);
        });

        $result->setHits($hits);
    }
public function fill ( Model $ model , Result $ result ) { $ hits = $ result -> hits ( ) -> map ( function ( $ hit ) use ( $ model ) { return $ this -> fillModel ( $ model , $ hit ) ; } ) ; $ result -> setHits ( $ hits ) ; }
Fill the results hists into Model.

@param Model  $model
@param Result $result

@return mixed|void
Fill the results hists into Model .