body)) { echo $this->body; } if ($this->terminateOnSend) { exit($this->code); } return $this->code; } /** * Get body * * @return string */ public function getBody() { return $this->body; } /** * Set body * * @param string $body * @return void */ public function setBody($body) { $this->body = $body; } /** * Set exit code * * @param int $code * @return void */ public function setCode($code) { if ($code > 255) { $code = 255; } $this->code = $code; } /** * Set whether to terminate process on send or not * * @param bool $terminate * @return void */ public function terminateOnSend($terminate) { $this->terminateOnSend = $terminate; } }