public function end($data, $encoding = "UTF-8") { if (strlen($data) > 0) { $this->data = $data; } else { $this->data = "\r\n"; } }