# HG changeset patch # User Markus Bröker # Date 1450489555 -3600 # Node ID 067edf3db6d7356c34c5ac942828cb8aeac9e48a # Parent 3a5ee3ba600622b5ac8ecdefc29369a4e9d920b7 PHPDocBlöcke überarbeitet diff --git a/classes/bfw/Response.php b/classes/bfw/Response.php --- a/classes/bfw/Response.php +++ b/classes/bfw/Response.php @@ -12,22 +12,48 @@ */ class Response { + /** + * + * @var array + */ private $headers; + + /** + * + * @var int + */ private $statusCode; + /** + * + */ public function __construct() { $this->headers = headers_list(); $this->statusCode = http_response_code(); } + /** + * + * @return array + */ public function getHeaders() { return $this->headers; } + /** + * + * @return int + */ public function getStatusCode() { return $this->statusCode; } + /** + * + * @param int $statusCode + * + * @return \bfw\Response + */ public function setStatusCode($statusCode) { $this->statusCode = $statusCode; @@ -35,6 +61,8 @@ } /** + * @param $key + * * @return string */ public function get($key) {