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 ( fad287...99c177 )
by
unknown
20s queued 11s
created

FetchException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getResponseBody() 0 4 1
1
<?php
2
3
/*
4
 * (c) Christian Gripp <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Core23\ShariffBundle\Service\Exception;
11
12
use Psr\Http\Client\ClientExceptionInterface;
13
14
class FetchException extends \Exception implements ClientExceptionInterface
15
{
16
    /**
17
     * @var string|null
18
     */
19
    private $responseBody;
20
21
    public function __construct(string $message, string $responseBody = null)
22
    {
23
        parent::__construct($message);
24
25
        $this->responseBody = $responseBody;
26
    }
27
28
    public function getResponseBody(): ?string
29
    {
30
        return $this->responseBody;
31
    }
32
}
33