--- 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) {