瀏覽代碼

add getReasonPhrase getReasonPhrase

walkor 4 年之前
父節點
當前提交
030db165cd
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18 0
      Protocols/Http/Response.php

+ 18 - 0
Protocols/Http/Response.php

@@ -233,6 +233,24 @@ class Response
     }
 
     /**
+     * Get status code.
+     *
+     * @return int
+     */
+    public function getStatusCode() {
+        return $this->_status;
+    }
+
+    /**
+     * Get reason phrase.
+     *
+     * @return string
+     */
+    public function getReasonPhrase() {
+        return $this->_reason;
+    }
+
+    /**
      * Set protocol version.
      *
      * @param $version