Completed
Push — master ( cc8d01...c2ba24 )
by Sergey
13:40
created
src/ElasticsearchModel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
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.
src/Relationship/HasManyRelationship.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * Find all children.
29 29
      *
30
-     * @return ElasticsearchModel[]
30
+     * @return \Isswp101\Persimmon\Collection\ElasticsearchCollection
31 31
      */
32 32
     public function get()
33 33
     {
Please login to merge, or discard this patch.