table = $table; $this->columnNames = $columnNames; $this->values = $values; $this->throwException = (bool) $throwException; $this->charset = $charset; } public function shouldIgnoreError($exception) { return false; } public function __toString() { return ''; } public function exec() { Db\BatchInsert::tableInsertBatch($this->table, $this->columnNames, $this->values, $this->throwException, $this->charset); } public function getColumnNames() { return $this->columnNames; } /** * @return string */ public function getTable() { return $this->table; } /** * @return array */ public function getValues() { return $this->values; } /** * @return boolean */ public function doesThrowException() { return $this->throwException; } /** * @return string */ public function getCharset() { return $this->charset; } }