Commit 924ecf87 authored by Taylor Otwell's avatar Taylor Otwell

Added __toString method to Response.

parent e48d6111
......@@ -177,4 +177,12 @@ class Response {
return $this->status == 301 or $this->status == 302;
}
/**
* Get the parsed content of the Response.
*/
public function __toString()
{
return (string) $this->content;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment