@@ -117,7 +117,6 @@ discard block |
||
| 117 | 117 | /** |
| 118 | 118 | * Run a query (prepare & execute). |
| 119 | 119 | * @param string $sql SQL query |
| 120 | - * @param array $data parameters (optional) |
|
| 121 | 120 | * @return ResultInterface the result of the execution |
| 122 | 121 | */ |
| 123 | 122 | public function query(string $sql, $par = null) : ResultInterface |
@@ -170,7 +169,6 @@ discard block |
||
| 170 | 169 | * Run a SELECT query and get a single row |
| 171 | 170 | * @param string $sql SQL query |
| 172 | 171 | * @param array $par parameters |
| 173 | - * @param callable $keys an optional mutator to pass each row's keys through (the column names) |
|
| 174 | 172 | * @param bool $opti if a single column is returned - do not use an array wrapper (defaults to `true`) |
| 175 | 173 | * @return Collection the result of the execution |
| 176 | 174 | */ |
@@ -184,7 +182,6 @@ discard block |
||
| 184 | 182 | * @param array $par parameters |
| 185 | 183 | * @param string $key column name to use as the array index |
| 186 | 184 | * @param bool $skip do not include the column used as index in the value (defaults to `false`) |
| 187 | - * @param callable $keys an optional mutator to pass each row's keys through (the column names) |
|
| 188 | 185 | * @param bool $opti if a single column is returned - do not use an array wrapper (defaults to `true`) |
| 189 | 186 | * @return Collection the result of the execution |
| 190 | 187 | */ |
@@ -15,6 +15,9 @@ |
||
| 15 | 15 | protected $iid = null; |
| 16 | 16 | protected $aff = 0; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param integer $aff |
|
| 20 | + */ |
|
| 18 | 21 | public function __construct($statement, $iid, $aff) |
| 19 | 22 | { |
| 20 | 23 | $this->statement = $statement; |
@@ -15,6 +15,10 @@ |
||
| 15 | 15 | protected $iid = null; |
| 16 | 16 | protected $aff = 0; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param integer $iid |
|
| 20 | + * @param integer $aff |
|
| 21 | + */ |
|
| 18 | 22 | public function __construct(\SQLite3Result $statement, $iid, $aff) |
| 19 | 23 | { |
| 20 | 24 | $this->statement = $statement; |
@@ -35,7 +35,6 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Run a query (prepare & execute). |
| 37 | 37 | * @param string $sql SQL query |
| 38 | - * @param array $data parameters (optional) |
|
| 39 | 38 | * @return ResultInterface the result of the execution |
| 40 | 39 | */ |
| 41 | 40 | public function query(string $sql, $par = null) : ResultInterface |
@@ -50,6 +49,13 @@ discard block |
||
| 50 | 49 | { |
| 51 | 50 | return $this->connection['name']; |
| 52 | 51 | } |
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * @param string $key |
|
| 55 | + * @param string $default |
|
| 56 | + * |
|
| 57 | + * @return string |
|
| 58 | + */ |
|
| 53 | 59 | public function option($key, $default = null) |
| 54 | 60 | { |
| 55 | 61 | return isset($this->connection['opts'][$key]) ? $this->connection['opts'][$key] : $default; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * Create an instance |
| 58 | 58 | * @param DBInterface $db the database connection |
| 59 | - * @param Table|string $definition the name or definition of the main table in the query |
|
| 59 | + * @param Table $table |
|
| 60 | 60 | */ |
| 61 | 61 | public function __construct(DBInterface $db, $table) |
| 62 | 62 | { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | } |
| 192 | 192 | /** |
| 193 | 193 | * Group by a column (or columns) |
| 194 | - * @param string|array $column the column name (or names) to group by |
|
| 194 | + * @param string $column the column name (or names) to group by |
|
| 195 | 195 | * @return $this |
| 196 | 196 | */ |
| 197 | 197 | public function group($column) : TableQuery |