@@ -109,6 +109,13 @@ protected function getDoctrineDriver()
109109 return new DoctrineDriver ;
110110 }
111111
112+ /**
113+ * Compile for select.
114+ *
115+ * @param \Illuminate\Database\Query\Builder $builder
116+ * @param array $bindings
117+ * @return array
118+ */
112119 private function compileForSelect (Builder $ builder , $ bindings ) {
113120 $ arrTables = [];
114121 array_push ($ arrTables , $ builder ->from );
@@ -221,6 +228,12 @@ private function compileForSelect(Builder $builder, $bindings) {
221228 return $ newBinds ;
222229 }
223230
231+ /**
232+ * Query string for select.
233+ *
234+ * @param string $tables
235+ * @return string
236+ */
224237 private function queryStringForSelect ($ tables )
225238 {
226239 $ explicitDB = explode ('.. ' , $ tables );
@@ -281,8 +294,8 @@ private function queryStringForSelect($tables)
281294 * Set new bindings with specified column types to Sybase.
282295 *
283296 * @param string $query
284- * @param array $bindings
285- * @return mixed $newBinds
297+ * @param array $bindings
298+ * @return mixed $newBinds
286299 */
287300 private function compileBindings ($ query , $ bindings )
288301 {
@@ -413,6 +426,12 @@ private function compileBindings($query, $bindings)
413426 return $ newBinds ;
414427 }
415428
429+ /**
430+ * Query string for compile bindings.
431+ *
432+ * @param string $table
433+ * @return string
434+ */
416435 private function queryStringForCompileBindings ($ table )
417436 {
418437 $ explicitDB = explode ('.. ' , $ table );
@@ -471,11 +490,11 @@ private function queryStringForCompileBindings($table)
471490
472491 /**
473492 * Set new bindings with specified column types to Sybase.
474- * Poderia compilar novamente dos bindings usando os PDO::PARAM, porém,
475- * não tem nenhuma constante que lide com decimais, logo, a única maneira
476- * seria colocando PDO::PARAM_STR, que colocaria plicas.
477- * Detalhes:
478- * http://stackoverflow.com/questions/2718628/pdoparam-for-type-decimal
493+ *
494+ * It could compile again from bindings using PDO::PARAM, however, it has
495+ * no constants that deal with decimals, so the only way would be to put
496+ * PDO::PARAM_STR, which would put quotes.
497+ * @link http://stackoverflow.com/questions/2718628/pdoparam-for-type-decimal
479498 *
480499 * @param string $query
481500 * @param array $bindings
@@ -505,6 +524,15 @@ private function compileNewQuery($query, $bindings)
505524 return $ newQuery ;
506525 }
507526
527+ /**
528+ * Compile offset.
529+ *
530+ * @param int $offset
531+ * @param string $query
532+ * @param array $bindings
533+ * @param \Uepg\LaravelSybase\Database\Connection $me
534+ * @return string
535+ */
508536 public function compileOffset ($ offset , $ query , $ bindings = [], $ me )
509537 {
510538 $ limit = $ this ->queryGrammar ->getBuilder ()->limit ;
@@ -566,6 +594,12 @@ public function compileOffset($offset, $query, $bindings = [], $me)
566594 }
567595 }
568596
597+ /**
598+ * Query string for identity.
599+ *
600+ * @param string $from
601+ * @return string
602+ */
569603 private function queryStringForIdentity ($ from )
570604 {
571605 $ explicitDB = explode ('.. ' , $ from );
@@ -594,6 +628,12 @@ private function queryStringForIdentity($from)
594628 }
595629 }
596630
631+ /**
632+ * Query string for primaries.
633+ *
634+ * @param string $from
635+ * @return string
636+ */
597637 private function queryStringForPrimaries ($ from )
598638 {
599639 $ explicitDB = explode ('.. ' , $ from );
@@ -671,8 +711,10 @@ public function select($query, $bindings = [], $useReadPdo = true)
671711 }
672712
673713 /**
714+ * Get the statement.
715+ *
674716 * @param string $query
675- * @param mixed array $bindings
717+ * @param mixed| array $bindings
676718 * @return bool
677719 */
678720 public function statement ($ query , $ bindings = [])
@@ -688,6 +730,13 @@ public function statement($query, $bindings = [])
688730 });
689731 }
690732
733+ /**
734+ * Affecting statement.
735+ *
736+ * @param string $query
737+ * @param array $bindings
738+ * @return int
739+ */
691740 public function affectingStatement ($ query , $ bindings = [])
692741 {
693742 return $ this ->run ($ query , $ bindings , function ($ query , $ bindings ) {
@@ -712,7 +761,9 @@ public function getFetchMode()
712761 }
713762
714763 /**
715- * @return \Uepg\LaravelSybase\Database\Query\Builder
764+ * Get SchemaBuilder.
765+ *
766+ * @return \Illuminate\Database\Query\Builder
716767 */
717768 public function getSchemaBuilder ()
718769 {
0 commit comments