stmt = $stmt; $this->values = $values; return $this; } public function postMessage() { $msg = ''; if ($this->stmt) { $msg .= "\nQuery: " . $this->stmt->queryString; if ($this->values) $msg .= "\nValues: " . var_export($this->values, true); } return $msg; } }