Completed
Push — master ( fedcf0...c28104 )
by Hong
02:54
created
src/Phossa2/Query/Traits/Clause/OrderByTrait.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -118,8 +118,20 @@
 block discarded – undo
118 118
         return $this->buildClause('ORDER BY', 'ORDER BY', $settings);
119 119
     }
120 120
 
121
+    /**
122
+     * @param boolean $rawMode
123
+     */
121 124
     abstract protected function isRaw($str, /*# bool */ $rawMode)/*# : bool */;
125
+
126
+    /**
127
+     * @param string $clauseName
128
+     */
122 129
     abstract protected function &getClause(/*# string */ $clauseName)/*# : array */;
130
+
131
+    /**
132
+     * @param string $clauseName
133
+     * @param string $clausePrefix
134
+     */
123 135
     abstract protected function buildClause(
124 136
         /*# string */ $clauseName,
125 137
         /*# string */ $clausePrefix,
Please login to merge, or discard this patch.
src/Phossa2/Query/Traits/Clause/JoinTrait.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @param  string $joinType
69 69
      * @param  string|string[]|SelectStatementInterface $secondTable
70
-     * @param  string|string[]|ExpressionInterface $onClause
70
+     * @param  string $onClause
71 71
      * @param  string $firstTable
72 72
      * @param  bool $rawMode
73 73
      * @return $this
@@ -238,8 +238,15 @@  discard block
 block discarded – undo
238 238
         return $alias . '.';
239 239
     }
240 240
 
241
+    /**
242
+     * @param string $str
243
+     */
241 244
     abstract protected function quote(/*# string */ $str, array $settings)/*# : string */;
242 245
     abstract protected function isRaw($str, /*# bool */ $rawMode)/*# : bool */;
246
+
247
+    /**
248
+     * @param string $clauseName
249
+     */
243 250
     abstract protected function &getClause(/*# string */ $clauseName)/*# : array */;
244 251
     abstract protected function flatSettings(array $settings)/*# : array */;
245 252
     abstract protected function quoteItem(
@@ -248,6 +255,10 @@  discard block
 block discarded – undo
248 255
         /*# bool */ $rawMode = false
249 256
     )/*# : string */;
250 257
     abstract protected function quoteAlias($alias, array $settings)/*# : string */;
258
+
259
+    /**
260
+     * @param string $seperator
261
+     */
251 262
     abstract protected function joinClause(
252 263
         /*# : string */ $prefix,
253 264
         /*# : string */ $seperator,
Please login to merge, or discard this patch.
src/Phossa2/Query/Traits/Clause/SetTrait.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -199,6 +199,11 @@
 block discarded – undo
199 199
     abstract protected function getType()/*# : string */;
200 200
     abstract protected function &getClause(/*# string */ $clauseName)/*# : array */;
201 201
     abstract protected function processValue($value, array $settings, /*# bool */ $between = false)/*# : string */;
202
+
203
+    /**
204
+     * @param string $prefix
205
+     * @param string $seperator
206
+     */
202 207
     abstract protected function joinClause(
203 208
         /*# : string */ $prefix,
204 209
         /*# : string */ $seperator,
Please login to merge, or discard this patch.
src/Phossa2/Query/Traits/Clause/ColTrait.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -95,6 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     /**
97 97
      * {@inheritDoc}
98
+     * @param string $template
98 99
      */
99 100
     public function colTpl(
100 101
         /*# string */ $template,
@@ -188,8 +189,19 @@  discard block
 block discarded – undo
188 189
         return $this->is_distinct ? ' DISTINCT' : $prefix;
189 190
     }
190 191
 
192
+    /**
193
+     * @param boolean $rawMode
194
+     */
191 195
     abstract protected function isRaw($str, /*# bool */ $rawMode)/*# : bool */;
196
+
197
+    /**
198
+     * @param string $clauseName
199
+     */
192 200
     abstract protected function &getClause(/*# string */ $clauseName)/*# : array */;
201
+
202
+    /**
203
+     * @param string $clauseName
204
+     */
193 205
     abstract protected function buildClause(
194 206
         /*# string */ $clauseName,
195 207
         /*# string */ $clausePrefix,
Please login to merge, or discard this patch.
src/Phossa2/Query/Traits/Clause/ExtraClauseTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -93,5 +93,8 @@
 block discarded – undo
93 93
         }
94 94
     }
95 95
 
96
+    /**
97
+     * @param string $clauseName
98
+     */
96 99
     abstract protected function &getClause(/*# string */ $clauseName)/*# : array */;
97 100
 }
Please login to merge, or discard this patch.
src/Phossa2/Query/Traits/Clause/GroupByTrait.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -118,8 +118,20 @@
 block discarded – undo
118 118
         return $this->buildClause('ORDER BY', 'ORDER BY', $settings);
119 119
     }
120 120
 
121
+    /**
122
+     * @param boolean $rawMode
123
+     */
121 124
     abstract protected function isRaw($str, /*# bool */ $rawMode)/*# : bool */;
125
+
126
+    /**
127
+     * @param string $clauseName
128
+     */
122 129
     abstract protected function &getClause(/*# string */ $clauseName)/*# : array */;
130
+
131
+    /**
132
+     * @param string $clauseName
133
+     * @param string $clausePrefix
134
+     */
123 135
     abstract protected function buildClause(
124 136
         /*# string */ $clauseName,
125 137
         /*# string */ $clausePrefix,
Please login to merge, or discard this patch.