Completed
Push — master ( 226980...c1625e )
by Hong
02:50
created
src/Phossa2/Query/Traits/Clause/ColTrait.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -38,6 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * {@inheritDoc}
41
+     * @param string $col
41 42
      */
42 43
     public function col($col, /*# string */ $alias = '')
43 44
     {
@@ -95,6 +96,7 @@  discard block
 block discarded – undo
95 96
 
96 97
     /**
97 98
      * {@inheritDoc}
99
+     * @param string $template
98 100
      */
99 101
     public function colTpl(
100 102
         /*# string */ $template,
@@ -188,8 +190,19 @@  discard block
 block discarded – undo
188 190
         return $this->is_distinct ? ' DISTINCT' : $prefix;
189 191
     }
190 192
 
193
+    /**
194
+     * @param boolean $rawMode
195
+     */
191 196
     abstract protected function isRaw($str, /*# bool */ $rawMode)/*# : bool */;
197
+
198
+    /**
199
+     * @param string $clauseName
200
+     */
192 201
     abstract protected function &getClause(/*# string */ $clauseName)/*# : array */;
202
+
203
+    /**
204
+     * @param string $clauseName
205
+     */
193 206
     abstract protected function buildClause(
194 207
         /*# string */ $clauseName,
195 208
         /*# 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.