Added __toString method to Response.

This commit is contained in:
Taylor Otwell 2011-07-08 12:57:11 -07:00
parent e48d611149
commit 924ecf879c
1 changed files with 8 additions and 0 deletions

View File

@ -177,4 +177,12 @@ public function is_redirect()
return $this->status == 301 or $this->status == 302;
}
/**
* Get the parsed content of the Response.
*/
public function __toString()
{
return (string) $this->content;
}
}