| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\App\Models\BatchQuery; |
| 4 |
|
| 5 |
use FluentCart\Framework\Database\Orm\Model; |
| 6 |
|
| 7 |
interface BatchInterface |
| 8 |
{ |
| 9 |
/** |
| 10 |
* Update multiple rows. |
| 11 |
* |
| 12 |
* @param Model $table |
| 13 |
* @param array $values |
| 14 |
* @param string|null $index |
| 15 |
* @param bool $raw |
| 16 |
* @return mixed |
| 17 |
*/ |
| 18 |
public function update(Model $table, array $values, ?string $index = null, bool $raw = false); |
| 19 |
|
| 20 |
/** |
| 21 |
* Update multiple rows with two index. |
| 22 |
* |
| 23 |
* @param Model $table |
| 24 |
* @param array $values |
| 25 |
* @param string|null $index |
| 26 |
* @param string|null $index2 |
| 27 |
* @param bool $raw |
| 28 |
* @return mixed |
| 29 |
*/ |
| 30 |
public function updateWithTwoIndex(Model $table, array $values, ?string $index = null, ?string $index2 = null, bool $raw = false); |
| 31 |
|
| 32 |
} |
| 33 |
|