1111namespace NilPortugues \SqlQueryBuilder \Builder \Syntax ;
1212
1313use NilPortugues \SqlQueryBuilder \Builder \GenericBuilder ;
14+ use NilPortugues \SqlQueryBuilder \Manipulation \AbstractBaseQuery ;
1415
1516/**
1617 * Class AbstractBaseWriter
@@ -46,11 +47,11 @@ public function __construct(GenericBuilder $writer, PlaceholderWriter $placehold
4647 }
4748
4849 /**
49- * @param $class
50+ * @param AbstractBaseQuery $class
5051 *
5152 * @return string
5253 */
53- public static function writeQueryComment ($ class )
54+ public static function writeQueryComment (AbstractBaseQuery $ class )
5455 {
5556 $ comment = '' ;
5657 if ('' !== $ class ->getComment ()) {
@@ -61,26 +62,33 @@ public static function writeQueryComment($class)
6162 }
6263
6364 /**
64- * @param $class
65+ * @param AbstractBaseQuery $class
6566 * @param GenericBuilder $writer
6667 * @param PlaceholderWriter $placeholderWriter
6768 * @param array $parts
6869 */
69- public static function writeWhereCondition ($ class , $ writer , PlaceholderWriter $ placeholderWriter , array &$ parts )
70- {
70+ public static function writeWhereCondition (
71+ AbstractBaseQuery $ class ,
72+ $ writer , PlaceholderWriter
73+ $ placeholderWriter ,
74+ array &$ parts
75+ ) {
7176 if (!is_null ($ class ->getWhere ())) {
7277 $ whereWriter = WriterFactory::createWhereWriter ($ writer , $ placeholderWriter );
7378 $ parts [] = "WHERE {$ whereWriter ->writeWhere ($ class ->getWhere ())}" ;
7479 }
7580 }
7681
7782 /**
78- * @param $class
83+ * @param AbstractBaseQuery $class
7984 * @param PlaceholderWriter $placeholderWriter
8085 * @param array $parts
8186 */
82- public static function writeLimitCondition ($ class , PlaceholderWriter $ placeholderWriter , array &$ parts )
83- {
87+ public static function writeLimitCondition (
88+ AbstractBaseQuery $ class ,
89+ PlaceholderWriter $ placeholderWriter ,
90+ array &$ parts
91+ ) {
8492 if (!is_null ($ class ->getLimitStart ())) {
8593 $ start = $ placeholderWriter ->add ($ class ->getLimitStart ());
8694 $ parts [] = "LIMIT {$ start }" ;
0 commit comments