Completed
Push — test ( ce85b4...b0706c )
by Temitope
04:17 queued 54s
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.
src/Model/BaseModel.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * This method find a record by id
101 101
      * @params int id
102
-     * @return Object
102
+     * @return BaseClass
103 103
      * @throws NoArgumentPassedToFunctionException
104 104
      */
105 105
     public static function find($id)
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
    /**
143 143
     * This method return the current class name
144 144
     * $params void
145
-    * @return classname
145
+    * @return string|false
146 146
     */
147 147
    public static function getClassName()
148 148
    {
Please login to merge, or discard this patch.