content = $content; } /** * Appends content to the already existing content. * * @param string $content More response content */ public function appendContent($content) { $this->content .= $content; } /** * Returns the response content without sending it. * * @return string The response content */ public function getContent() { return $this->content; } /** * Fetches the content, returns and clears it. * * @return string */ public function shutdown() { $content = $this->getContent(); $this->setContent(''); return $content; } /** * Returns the content of the response. * * @return string */ public function __toString() { return $this->getContent(); } }