public function setContentType($type, $encoding = "utf-8") { $this->contentType = $type; $this->encoding = $encoding; }