| 1 | <?php |
||
| 11 | class UpdateCommand extends TableCommand |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Where conditions (short where format). |
||
| 15 | * |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $where = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Columns to be updated. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | private $values = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * UpdateCommand constructor. |
||
| 29 | * |
||
| 30 | * @param Table $table |
||
| 31 | * @param array $where |
||
| 32 | * @param array $values |
||
| 33 | */ |
||
| 34 | public function __construct(Table $table, array $where, array $values) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param array $where |
||
| 43 | */ |
||
| 44 | public function setWhere(array $where) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Inserting data into associated table. |
||
| 51 | */ |
||
| 52 | public function execute() |
||
| 57 | } |