Passed
Branch query-builder (144da5)
by Csaba
02:37
created
src/Database/Clusterpoint/Finder.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@  discard block
 block discarded – undo
7 7
 
8 8
 class Finder extends BaseFinder
9 9
 {
10
+    /**
11
+     * @param \Clusterpoint\Instance\Service $collection
12
+     */
10 13
     protected function setLimit($collection)
11 14
     {
12 15
         if ($this->queryConfiguration->limit !== null) {
@@ -14,6 +17,9 @@  discard block
 block discarded – undo
14 17
         }
15 18
     }
16 19
 
20
+    /**
21
+     * @param \Clusterpoint\Instance\Service $collection
22
+     */
17 23
     protected function setOffset($collection)
18 24
     {
19 25
         if ($this->queryConfiguration->offset !== null) {
@@ -21,6 +27,9 @@  discard block
 block discarded – undo
21 27
         }
22 28
     }
23 29
 
30
+    /**
31
+     * @param \Clusterpoint\Instance\Service $collection
32
+     */
24 33
     protected function setOrderBy($collection)
25 34
     {
26 35
         foreach ($this->queryConfiguration->orderBy as $orderBy) {
@@ -28,6 +37,9 @@  discard block
 block discarded – undo
28 37
         }
29 38
     }
30 39
 
40
+    /**
41
+     * @param \Clusterpoint\Instance\Service $collection
42
+     */
31 43
     protected function setSelect($collection)
32 44
     {
33 45
         if ($this->queryConfiguration->select !== '*') {
@@ -35,6 +47,9 @@  discard block
 block discarded – undo
35 47
         }
36 48
     }
37 49
 
50
+    /**
51
+     * @param \Clusterpoint\Instance\Service $collection
52
+     */
38 53
     public function setWhere($collection)
39 54
     {
40 55
         if (!empty($this->queryConfiguration->where)) {
@@ -85,6 +100,9 @@  discard block
 block discarded – undo
85 100
         };
86 101
     }
87 102
 
103
+    /**
104
+     * @param string $nextLogical
105
+     */
88 106
     protected function parseWhereGroup($logical, $collection, $condition, $nextLogical)
89 107
     {
90 108
         if ($logical === '||') {
Please login to merge, or discard this patch.