Completed
Push — master ( ab4a72...99f0f9 )
by Sergey
05:20
created
src/Elasticsearch/InnerHits.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -11,11 +11,17 @@
 block discarded – undo
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');
17 20
     }
18 21
 
22
+    /**
23
+     * @param string $parentType
24
+     */
19 25
     public function getParent($parentType)
20 26
     {
21 27
         return array_get($this->hits, 'inner_hits.' . $parentType . '.hits.hits.0');
Please login to merge, or discard this patch.