@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Create an instance |
| 62 | 62 | * @param DBInterface $db the database connection |
| 63 | - * @param Table|string $table the name or definition of the main table in the query |
|
| 63 | + * @param Table $table the name or definition of the main table in the query |
|
| 64 | 64 | */ |
| 65 | 65 | public function __construct(DBInterface $db, $table) |
| 66 | 66 | { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | } |
| 240 | 240 | /** |
| 241 | 241 | * Group by a column (or columns) |
| 242 | - * @param string|array $column the column name (or names) to group by |
|
| 242 | + * @param string $column the column name (or names) to group by |
|
| 243 | 243 | * @return $this |
| 244 | 244 | */ |
| 245 | 245 | public function group($column) : TableQuery |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use vakata\collection\Collection; |
| 5 | 5 | use vakata\database\DBInterface; |
| 6 | 6 | use vakata\database\DBException; |
| 7 | -use vakata\database\ResultInterface; |
|
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * A database query class |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | protected $fetched = -1; |
| 19 | 19 | protected $iid = null; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param resource $statement |
|
| 23 | + */ |
|
| 21 | 24 | public function __construct($statement, $data, $iid, $charIn = null, $charOut = null) |
| 22 | 25 | { |
| 23 | 26 | $this->statement = $statement; |