Jelajahi Sumber

__toString for Response

walkor 4 tahun lalu
induk
melakukan
5dbf3339e8
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      Protocols/Http/Request.php

+ 8 - 0
Protocols/Http/Request.php

@@ -605,6 +605,14 @@ class Request
     }
 
     /**
+     * __toString.
+     */
+    public function __toString()
+    {
+        return $this->_buffer;
+    }
+
+    /**
      * __destruct.
      *
      * @return void