@@ -170,7 +170,6 @@ class BaseBuilder
170
170
* sql?: string,
171
171
* alias?: string
172
172
* }
173
- *
174
173
* @var array
175
174
*/
176
175
protected $ QBOptions ;
@@ -498,10 +497,10 @@ public function selectSubquery(BaseBuilder $subquery, string $as): self
498
497
* @used-by selectAvg()
499
498
* @used-by selectSum()
500
499
*
500
+ * @return $this
501
+ *
501
502
* @throws DatabaseException
502
503
* @throws DataException
503
- *
504
- * @return $this
505
504
*/
506
505
protected function maxMinAvgSum (string $ select = '' , string $ alias = '' , string $ type = 'MAX ' )
507
506
{
@@ -910,9 +909,9 @@ public function orHavingNotIn(?string $key = null, $values = null, ?bool $escape
910
909
*
911
910
* @param array|BaseBuilder|Closure|null $values The values searched on, or anonymous function with subquery
912
911
*
913
- * @throws InvalidArgumentException
914
- *
915
912
* @return $this
913
+ *
914
+ * @throws InvalidArgumentException
916
915
*/
917
916
protected function _whereIn (?string $ key = null , $ values = null , bool $ not = false , string $ type = 'AND ' , ?bool $ escape = null , string $ clause = 'QBWhere ' )
918
917
{
@@ -1744,9 +1743,9 @@ public function getWhere($where = null, ?int $limit = null, ?int $offset = 0, bo
1744
1743
/**
1745
1744
* Compiles batch insert/update/upsert strings and runs the queries
1746
1745
*
1747
- * @throws DatabaseException
1748
- *
1749
1746
* @return false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode
1747
+ *
1748
+ * @throws DatabaseException
1750
1749
*/
1751
1750
protected function batchExecute (string $ renderMethod , int $ batchSize = 100 )
1752
1751
{
@@ -1859,9 +1858,9 @@ public function setData($set, ?bool $escape = null, string $alias = '')
1859
1858
/**
1860
1859
* Compiles an upsert query and returns the sql
1861
1860
*
1862
- * @throws DatabaseException
1863
- *
1864
1861
* @return string
1862
+ *
1863
+ * @throws DatabaseException
1865
1864
*/
1866
1865
public function getCompiledUpsert ()
1867
1866
{
@@ -1879,9 +1878,9 @@ public function getCompiledUpsert()
1879
1878
*
1880
1879
* @param array|object|null $set
1881
1880
*
1882
- * @throws DatabaseException
1883
- *
1884
1881
* @return false|int|string[] Number of affected rows or FALSE on failure, SQL array when testMode
1882
+ *
1883
+ * @throws DatabaseException
1885
1884
*/
1886
1885
public function upsert ($ set = null , ?bool $ escape = null )
1887
1886
{
@@ -1908,9 +1907,9 @@ public function upsert($set = null, ?bool $escape = null)
1908
1907
*
1909
1908
* @param array|object|null $set a dataset
1910
1909
*
1911
- * @throws DatabaseException
1912
- *
1913
1910
* @return false|int|string[] Number of affected rows or FALSE on failure, SQL array when testMode
1911
+ *
1912
+ * @throws DatabaseException
1914
1913
*/
1915
1914
public function upsertBatch ($ set = null , ?bool $ escape = null , int $ batchSize = 100 )
1916
1915
{
@@ -2115,9 +2114,9 @@ public function setInsertBatch($key, string $value = '', ?bool $escape = null)
2115
2114
/**
2116
2115
* Compiles an insert query and returns the sql
2117
2116
*
2118
- * @throws DatabaseException
2119
- *
2120
2117
* @return bool|string
2118
+ *
2119
+ * @throws DatabaseException
2121
2120
*/
2122
2121
public function getCompiledInsert (bool $ reset = true )
2123
2122
{
@@ -2148,9 +2147,9 @@ public function getCompiledInsert(bool $reset = true)
2148
2147
*
2149
2148
* @param array|object|null $set
2150
2149
*
2151
- * @throws DatabaseException
2152
- *
2153
2150
* @return bool
2151
+ *
2152
+ * @throws DatabaseException
2154
2153
*/
2155
2154
public function insert ($ set = null , ?bool $ escape = null )
2156
2155
{
@@ -2238,9 +2237,9 @@ protected function _insert(string $table, array $keys, array $unescapedKeys): st
2238
2237
/**
2239
2238
* Compiles a replace into string and runs the query
2240
2239
*
2241
- * @throws DatabaseException
2242
- *
2243
2240
* @return BaseResult|false|Query|string
2241
+ *
2242
+ * @throws DatabaseException
2244
2243
*/
2245
2244
public function replace (?array $ set = null )
2246
2245
{
@@ -2491,10 +2490,10 @@ protected function _updateBatch(string $table, array $keys, array $values): stri
2491
2490
*
2492
2491
* @param array|object $key
2493
2492
*
2494
- * @throws DatabaseException
2495
- *
2496
2493
* @return $this
2497
2494
*
2495
+ * @throws DatabaseException
2496
+ *
2498
2497
* @deprecated
2499
2498
*/
2500
2499
public function setUpdateBatch ($ key , string $ index = '' , ?bool $ escape = null )
@@ -2577,9 +2576,9 @@ public function getCompiledDelete(bool $reset = true): string
2577
2576
*
2578
2577
* @param mixed $where
2579
2578
*
2580
- * @throws DatabaseException
2581
- *
2582
2579
* @return bool|string
2580
+ *
2581
+ * @throws DatabaseException
2583
2582
*/
2584
2583
public function delete ($ where = '' , ?int $ limit = null , bool $ resetData = true )
2585
2584
{
0 commit comments