for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace IproSoftwareApi\Exceptions;
use Psr\Http\Message\ResponseInterface;
use Throwable;
class IproSoftwareApiAccessTokenException extends IproSoftwareApiException
{
/** @var ResponseInterface */
protected $response;
public function __construct(ResponseInterface $response = null, $message = '', Throwable $previous = null)
parent::__construct($message, ($this->response) ? $this->response->getStatusCode() : 0, $previous);
$this->response = $response;
}
/**
* @return ResponseInterface
*/
public function getResponse(): ResponseInterface
return $this->response;