public static function hydrateElasticquentResult(array $items, $meta = null)
    {
        $instance = new static;

        $items = array_map(function ($item) use ($instance) {
            return $instance->newFromHitBuilder($item);
        }, $items);

        return $instance->newElasticquentResultCollection($items, $meta);
    }
public static function hydrateElasticquentResult(array $items, $meta = null)
    {
        $instance = new static;

        $items = array_map(function ($item) use ($instance) {
            return $instance->newFromHitBuilder($item);
        }, $items);

        return $instance->newElasticquentResultCollection($items, $meta);
    }
public static function hydrateElasticquentResult ( array $ items , $ meta = null ) { $ instance = new static ; $ items = array_map ( function ( $ item ) use ( $ instance ) { return $ instance -> newFromHitBuilder ( $ item ) ; } , $ items ) ; return $ instance -> newElasticquentResultCollection ( $ items , $ meta ) ; }
Create a elacticquent result collection of models from plain arrays.

@param  array  $items
@param  array  $meta
@return \Elasticquent\ElasticquentResultCollection
Create a elacticquent result collection of models from plain arrays .