GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

BadResponseError::getResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
namespace OpenStack\Common\Error;
4
5
use Psr\Http\Message\RequestInterface;
6
use Psr\Http\Message\ResponseInterface;
7
8
/**
9
 * Represents a HTTP-specific error, caused by 4xx or 5xx response statuses.
10
 *
11
 * @package OpenStack\Common\Error
12
 */
13
class BadResponseError extends BaseError
14
{
15
    /** @var RequestInterface */
16
    private $request;
17
18
    /** @var ResponseInterface */
19
    private $response;
20
21 8
    public function setRequest(RequestInterface $request)
22
    {
23 8
        $this->request = $request;
24 8
    }
25
26 8
    public function setResponse(ResponseInterface $response)
27
    {
28 8
        $this->response = $response;
29 8
    }
30
31 1
    public function getRequest(): RequestInterface
32
    {
33 1
        return $this->request;
34
    }
35
36 6
    public function getResponse(): ResponseInterface
37
    {
38 6
        return $this->response;
39
    }
40
}
41