Browse Source

add getReasonPhrase getReasonPhrase

walkor 4 năm trước cách đây
mục cha
commit
030db165cd
1 tập tin đã thay đổi với 18 bổ sung0 xóa
  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