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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 28
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setRequest() 0 4 1
A setResponse() 0 4 1
A getRequest() 0 4 1
A getResponse() 0 4 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