Explorar o código

__toString for Response

walkor %!s(int64=4) %!d(string=hai) anos
pai
achega
5dbf3339e8
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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