diff --git a/src/Response.php b/src/Response.php index e1e3174..df72803 100644 --- a/src/Response.php +++ b/src/Response.php @@ -19,8 +19,18 @@ */ class Response extends Message implements ResponseInterface { + + /** + * @var bool + */ protected $contentSent = false; + /** + * Check if content was sent + * + * @return bool + * @deprecated + */ public function contentSent() { return $this->contentSent; @@ -48,6 +58,12 @@ public function getErrorLevel() return $this->getMetadata('errorLevel', 0); } + /** + * Send content + * + * @return Response + * @deprecated + */ public function sendContent() { if ($this->contentSent()) { @@ -58,10 +74,14 @@ public function sendContent() return $this; } + /** + * @deprecated + */ public function send() { $this->sendContent(); $errorLevel = (int) $this->getMetadata('errorLevel',0); exit($errorLevel); } + }