@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param $tablename |
63 | 63 | * @param $con |
64 | 64 | * |
65 | - * @return bool |
|
65 | + * @return boolean|null |
|
66 | 66 | */ |
67 | 67 | public function checkTableExist($table, $con=NULL) |
68 | 68 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * checkTableName Return the table name |
79 | 79 | * |
80 | - * @param $tablename |
|
80 | + * @param string|false $tablename |
|
81 | 81 | * @param $con |
82 | 82 | * |
83 | 83 | * @return string |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * checkColumn Check if column exist in table |
102 | 102 | * |
103 | 103 | * @param $tableName |
104 | - * @param $columnName |
|
104 | + * @param string $columnName |
|
105 | 105 | * @param $con |
106 | 106 | * |
107 | 107 | * @return string |
@@ -194,6 +194,7 @@ discard block |
||
194 | 194 | /** |
195 | 195 | * selectAllQuery |
196 | 196 | * |
197 | + * @param string $tableName |
|
197 | 198 | * @return string |
198 | 199 | */ |
199 | 200 | public static function selectAllQuery($tableName) |
@@ -229,6 +230,8 @@ discard block |
||
229 | 230 | /** |
230 | 231 | * selectQuery |
231 | 232 | * |
233 | + * @param string $tableName |
|
234 | + * @param string $connection |
|
232 | 235 | * @return string |
233 | 236 | */ |
234 | 237 | public static function selectQuery($tableName, $data, $condition, $connection) |
@@ -256,6 +259,7 @@ discard block |
||
256 | 259 | /** |
257 | 260 | * insertQuery |
258 | 261 | * |
262 | + * @param string $tableName |
|
259 | 263 | * @return string |
260 | 264 | */ |
261 | 265 | public function insertQuery($tableName) |
@@ -273,6 +277,7 @@ discard block |
||
273 | 277 | /** |
274 | 278 | * updateQuery |
275 | 279 | * |
280 | + * @param string $tableName |
|
276 | 281 | * @return string |
277 | 282 | */ |
278 | 283 | public function updateQuery($tableName) |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This class handles building sql query statement and check |
|
4 | - * that the table exist in the database. |
|
5 | - * |
|
6 | - * @package Ibonly\PotatoORM\DatabaseQuery |
|
7 | - * @author Ibraheem ADENIYI <[email protected]> |
|
8 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
9 | - */ |
|
3 | + * This class handles building sql query statement and check |
|
4 | + * that the table exist in the database. |
|
5 | + * |
|
6 | + * @package Ibonly\PotatoORM\DatabaseQuery |
|
7 | + * @author Ibraheem ADENIYI <[email protected]> |
|
8 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Ibonly\PotatoORM; |
12 | 12 |
@@ -51,6 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * getTableName() |
53 | 53 | * |
54 | + * @param string $connection |
|
54 | 55 | * @return string |
55 | 56 | */ |
56 | 57 | public static function getTableName($connection) |
@@ -62,7 +63,7 @@ discard block |
||
62 | 63 | * getALL() |
63 | 64 | * Get all record from the database |
64 | 65 | * |
65 | - * @return object |
|
66 | + * @return GetData|null |
|
66 | 67 | */ |
67 | 68 | public function getALL($dbConnection = NULL) |
68 | 69 | { |
@@ -90,7 +91,7 @@ discard block |
||
90 | 91 | * where($data, $condition) |
91 | 92 | * Get data from database where $data = $condition |
92 | 93 | * |
93 | - * @return object |
|
94 | + * @return GetData|null |
|
94 | 95 | */ |
95 | 96 | public function where($data, $condition = NULL, $dbConnection = NULL) |
96 | 97 | { |
@@ -121,7 +122,7 @@ discard block |
||
121 | 122 | * find($value) |
122 | 123 | * Find data from database where id = $value |
123 | 124 | * |
124 | - * @return array |
|
125 | + * @return Model|null |
|
125 | 126 | */ |
126 | 127 | public static function find($value, $dbConnection = NULL) |
127 | 128 | { |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * PotatoORM manages the persistence of database CRUD operations. |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\Model |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * PotatoORM manages the persistence of database CRUD operations. |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\Model |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for user not found |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\ColumnNotExistExeption |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for user not found |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\ColumnNotExistExeption |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for no records in database |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\EmptyDatabaseException |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for no records in database |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\EmptyDatabaseException |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for user already exist |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\ErrorInsertingException |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for user already exist |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\ErrorInsertingException |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for user not found |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\InvalidConnectionException |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for user not found |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\InvalidConnectionException |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for user already exist |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\SaveUserExistException |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for user already exist |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\SaveUserExistException |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for user not found |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\TableDoesNotExistException |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for user not found |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\TableDoesNotExistException |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for user not found |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\UserNotFoundException |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for user not found |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\UserNotFoundException |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |