Browse Source

add getReasonPhrase getReasonPhrase

walkor 4 years ago
parent
commit
030db165cd
1 changed files with 18 additions and 0 deletions
  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