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.
Completed
Push — master ( fb8f70...fcb615 )
by Cees-Jan
12:21 queued 02:24
created

Response   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 39
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getBody() 0 4 1
A getResponse() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Foundation\Transport;
4
5
use Psr\Http\Message\ResponseInterface;
6
7
final class Response
8
{
9
    /**
10
     * @var string
11
     */
12
    private $body;
13
14
    /**
15
     * @var ResponseInterface
16
     */
17
    private $response;
18
19
    /**
20
     * Response constructor.
21
     * @param string $body
22
     * @param ResponseInterface $response
23
     */
24
    public function __construct($body, ResponseInterface $response)
25
    {
26
        $this->body = $body;
27
        $this->response = $response;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getBody(): string
34
    {
35
        return $this->body;
36
    }
37
38
    /**
39
     * @return ResponseInterface
40
     */
41
    public function getResponse(): ResponseInterface
42
    {
43
        return $this->response;
44
    }
45
}
46