public function setMeta(array $meta)
    {
        $this->took = isset($meta['took']) ? $meta['took'] : null;
        $this->timed_out = isset($meta['timed_out']) ? $meta['timed_out'] : null;
        $this->shards = isset($meta['_shards']) ? $meta['_shards'] : null;
        $this->hits = isset($meta['hits']) ? $meta['hits'] : null;
        $this->aggregations = isset($meta['aggregations']) ? $meta['aggregations'] : [];

        return $this;
    }
public function setMeta(array $meta)
    {
        $this->took = isset($meta['took']) ? $meta['took'] : null;
        $this->timed_out = isset($meta['timed_out']) ? $meta['timed_out'] : null;
        $this->shards = isset($meta['_shards']) ? $meta['_shards'] : null;
        $this->hits = isset($meta['hits']) ? $meta['hits'] : null;
        $this->aggregations = isset($meta['aggregations']) ? $meta['aggregations'] : [];

        return $this;
    }
public function setMeta ( array $ meta ) { $ this -> took = isset ( $ meta [ 'took' ] ) ? $ meta [ 'took' ] : null ; $ this -> timed_out = isset ( $ meta [ 'timed_out' ] ) ? $ meta [ 'timed_out' ] : null ; $ this -> shards = isset ( $ meta [ '_shards' ] ) ? $ meta [ '_shards' ] : null ; $ this -> hits = isset ( $ meta [ 'hits' ] ) ? $ meta [ 'hits' ] : null ; $ this -> aggregations = isset ( $ meta [ 'aggregations' ] ) ? $ meta [ 'aggregations' ] : [ ] ; return $ this ; }
Set the result meta.

@param array $meta
@return $this
Set the result meta .