private function addQueryParams($params, $types) { $index = count($this->sql) - 1; $this->params[$index] = $params; $this->types[$index] = $types; }