Completed
Push — test ( 63c20a...5a4f66 )
by Temitope
02:25
created
src/Database/DatabaseHandler.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@  discard block
 block discarded – undo
21 21
     
22 22
     /**
23 23
      * This is a constructor; a default method  that will be called automatically during class instantiation
24
+     * @param string|false $modelClassName
24 25
      */
25 26
      public function __construct($modelClassName, $dbConn = Null)
26 27
      {
@@ -35,7 +36,8 @@  discard block
 block discarded – undo
35 36
     /**
36 37
      * This method create a record and store it in a table row
37 38
      * @params associative array, string tablename
38
-     * @return boolean true or false
39
+     * @param string|false $tableName
40
+     * @return boolean|null true or false
39 41
      */
40 42
     public function create($associative1DArray, $tableName, $dbConn = Null)
41 43
     {
@@ -70,6 +72,7 @@  discard block
 block discarded – undo
70 72
     /**
71 73
      * This method updates any table by supplying 3 parameter
72 74
      * @params: $updateParams, $tableName, $associative1DArray
75
+     * @param string|false $tableName
73 76
      * @return boolean true or false
74 77
      */
75 78
     public function update(array $updateParams, $tableName, $associative1DArray, $dbConn = Null)
@@ -102,6 +105,7 @@  discard block
 block discarded – undo
102 105
   /**
103 106
    * This method retrieves record from a table
104 107
    * @params int id, string tableName
108
+   * @param string|false $tableName
105 109
    * @return array
106 110
    */
107 111
    public static function read($id, $tableName, $dbConn = Null)
@@ -132,6 +136,7 @@  discard block
 block discarded – undo
132 136
   /**
133 137
    * This method deletes a record  from a table row
134 138
    * @params int id, string tableName
139
+   * @param string|false $tableName
135 140
    * @return boolean true or false
136 141
    */
137 142
   public static function delete($id, $tableName, $dbConn = Null)
@@ -164,7 +169,7 @@  discard block
 block discarded – undo
164 169
   
165 170
   /**
166 171
    * This method returns sql query
167
-   * @param $sql
172
+   * @param string $sql
168 173
    * @return string
169 174
    */
170 175
   public function prepareUpdateQuery($sql)
@@ -206,6 +211,7 @@  discard block
 block discarded – undo
206 211
    * This method returns column fields of a particular table
207 212
    * @param $table
208 213
    * @param $conn
214
+   * @param DatabaseConnection $dbConn
209 215
    * @return array
210 216
    */
211 217
  public function getColumnNames($table, $dbConn = Null) {
Please login to merge, or discard this patch.