values = array(); $this->table = $table; $this->conditions = array(); } public function where(...$conditions): Update { $this->conditions[] = (count($conditions) === 1 ? $conditions : new CondOr($conditions)); return $this; } public function set(string $key, $val): Update { $this->values[$key] = $val; return $this; } public function execute(): bool { return $this->sql->executeUpdate($this); } public function getTable(): string { return $this->table; } public function getConditions(): array { return $this->conditions; } public function getValues(): array { return $this->values; } }