@@ -16,6 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * This is a constructor; a default method that will be called automatically during class instantiation. |
| 19 | + * @param string|false $modelClassName |
|
| 19 | 20 | */ |
| 20 | 21 | public function __construct($modelClassName, $dbConn = null) |
| 21 | 22 | { |
@@ -32,6 +33,7 @@ discard block |
||
| 32 | 33 | * This method create a record and store it in a table row. |
| 33 | 34 | * |
| 34 | 35 | * @params associative array, string tablename |
| 36 | + * @param string|false $tableName |
|
| 35 | 37 | * |
| 36 | 38 | * @return bool true or false |
| 37 | 39 | */ |
@@ -91,6 +93,7 @@ discard block |
||
| 91 | 93 | * This method updates any table by supplying 3 parameter. |
| 92 | 94 | * |
| 93 | 95 | * @params: $updateParams, $tableName, $associative1DArray |
| 96 | + * @param string|false $tableName |
|
| 94 | 97 | * |
| 95 | 98 | * @return bool true or false |
| 96 | 99 | */ |
@@ -137,6 +140,7 @@ discard block |
||
| 137 | 140 | * This method retrieves record from a table. |
| 138 | 141 | * |
| 139 | 142 | * @params int id, string tableName |
| 143 | + * @param string|false $tableName |
|
| 140 | 144 | * |
| 141 | 145 | * @return array |
| 142 | 146 | */ |
@@ -168,6 +172,7 @@ discard block |
||
| 168 | 172 | * This method deletes a record from a table row. |
| 169 | 173 | * |
| 170 | 174 | * @params int id, string tableName |
| 175 | + * @param string|false $tableName |
|
| 171 | 176 | * |
| 172 | 177 | * @return bool true or false |
| 173 | 178 | */ |
@@ -212,7 +217,7 @@ discard block |
||
| 212 | 217 | /** |
| 213 | 218 | * This method returns sql query. |
| 214 | 219 | * |
| 215 | - * @param $sql |
|
| 220 | + * @param string $sql |
|
| 216 | 221 | * |
| 217 | 222 | * @return string |
| 218 | 223 | */ |
@@ -265,6 +270,7 @@ discard block |
||
| 265 | 270 | * |
| 266 | 271 | * @param $table |
| 267 | 272 | * @param $conn |
| 273 | + * @param DatabaseConnection $dbConn |
|
| 268 | 274 | * |
| 269 | 275 | * @return array |
| 270 | 276 | */ |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * |
| 121 | 121 | * @throws NoArgumentPassedToFunctionException |
| 122 | 122 | * |
| 123 | - * @return object |
|
| 123 | + * @return BaseModel |
|
| 124 | 124 | */ |
| 125 | 125 | public static function find($id) |
| 126 | 126 | { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | * This method return the current class name |
| 172 | 172 | * $params void. |
| 173 | 173 | * |
| 174 | - * @return classname |
|
| 174 | + * @return string|false |
|
| 175 | 175 | */ |
| 176 | 176 | public static function getClassName() |
| 177 | 177 | { |