for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tgallice\Wit\Exception;
use Psr\Http\Message\ResponseInterface;
class BadResponseException extends \RuntimeException
{
/**
* @var ResponseInterface
*/
private $response;
* @param string $message
* @param ResponseInterface $response
public function __construct($message, ResponseInterface $response)
$code = $response ? $response->getStatusCode() : 0;
parent::__construct($message, $code);
$this->response = $response;
}
* @return ResponseInterface
public function getResponse()
return $this->response;