| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 9 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 33 | 2 | public function __construct(array $result) | |
| 34 |     { | ||
| 35 | 2 | $this->took = (int)array_get($result, 'took'); | |
| 36 | 2 | $this->timedOut = (bool)array_get($result, 'timed_out'); | |
| 37 | 2 | $this->shards = (array)array_get($result, '_shards'); | |
| 38 | 2 | $this->hits = new Collection(array_get($result, 'hits.hits')); | |
| 39 | 2 | $this->totalHits = (int)array_get($result, 'hits.total'); | |
| 40 | 2 | $this->maxScore = (float)array_get($result, 'hits.max_score'); | |
| 41 | 2 | $this->aggregation = array_get($result, 'aggregations', null); | |
| 42 | 2 | } | |
| 108 |