@@ -11,6 +11,9 @@ |
||
11 | 11 | $this->hits = array_get($response, 'inner_hits', []); |
12 | 12 | } |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $parentType |
|
16 | + */ |
|
14 | 17 | public function getParentId($parentType) |
15 | 18 | { |
16 | 19 | return array_get($this->hits, 'inner_hits.' . $parentType . '.hits.hits.0._id'); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @param array $query |
49 | - * @return ElasticsearchCollection|static[] |
|
49 | + * @return ElasticsearchCollection |
|
50 | 50 | */ |
51 | 51 | public static function search($query = []) |
52 | 52 | { |