@@ -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 | { |
@@ -17,6 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * This is a constructor; a default method that will be called automatically during class instantiation. |
| 20 | + * @param string|false $modelClassName |
|
| 20 | 21 | */ |
| 21 | 22 | public function __construct($modelClassName, $dbConn = null) |
| 22 | 23 | { |
@@ -33,6 +34,7 @@ discard block |
||
| 33 | 34 | * This method create a record and store it in a table row. |
| 34 | 35 | * |
| 35 | 36 | * @params associative array, string tablename |
| 37 | + * @param string|false $tableName |
|
| 36 | 38 | * |
| 37 | 39 | * @return bool true or false |
| 38 | 40 | */ |
@@ -92,6 +94,7 @@ discard block |
||
| 92 | 94 | * This method updates any table by supplying 3 parameter. |
| 93 | 95 | * |
| 94 | 96 | * @params: $updateParams, $tableName, $associative1DArray |
| 97 | + * @param string|false $tableName |
|
| 95 | 98 | * |
| 96 | 99 | * @return bool true or false |
| 97 | 100 | */ |
@@ -138,6 +141,7 @@ discard block |
||
| 138 | 141 | * This method retrieves record from a table. |
| 139 | 142 | * |
| 140 | 143 | * @params int id, string tableName |
| 144 | + * @param string|false $tableName |
|
| 141 | 145 | * |
| 142 | 146 | * @return array |
| 143 | 147 | */ |
@@ -169,6 +173,7 @@ discard block |
||
| 169 | 173 | * This method deletes a record from a table row. |
| 170 | 174 | * |
| 171 | 175 | * @params int id, string tableName |
| 176 | + * @param string|false $tableName |
|
| 172 | 177 | * |
| 173 | 178 | * @return bool true or false |
| 174 | 179 | */ |
@@ -213,7 +218,7 @@ discard block |
||
| 213 | 218 | /** |
| 214 | 219 | * This method returns sql query. |
| 215 | 220 | * |
| 216 | - * @param $sql |
|
| 221 | + * @param string $sql |
|
| 217 | 222 | * |
| 218 | 223 | * @return string |
| 219 | 224 | */ |