for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace CodeZero\Curl;
class Response
{
/**
* The Response Body
*
* @var mixed
*/
private $rawResponse;
* Additional Response Information
* @var ResponseInfo
private $responseInfo;
* Constructor
* @param $rawResponse
* @param ResponseInfo $responseInfo
public function __construct($rawResponse, ResponseInfo $responseInfo)
$this->rawResponse = $rawResponse;
$this->responseInfo = $responseInfo;
}
* Response information
* @return ResponseInfo
public function info()
return $this->responseInfo;
* Get the response body
* @return string
public function getBody()
return $this->rawResponse;
* Output the raw response
public function __toString()