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 — develop ( 853650...6daea0 )
by Gavin
06:42 queued 04:09
created

AuthorizationResponse::isAuthorized()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace JumpCloud\Response;
4
5
use GuzzleHttp\Psr7\Response as HttpResponse;
6
7
/**
8
 * Class AuthorizationResponse
9
 * @package JumpCloud\Response
10
 */
11
class AuthorizationResponse implements ResponseInterface
12
{
13
    use ResponseTrait;
14
15
    const AUTHORISED = true;
16
    const UNAUTHORISED = false;
17
18
    /**
19
     * @var bool
20
     */
21
    private $authorized;
22
23
    /**
24
     * AuthorizationResponse constructor.
25
     * @param HttpResponse $response
26
     * @param $authorized
27
     */
28
    public function __construct(HttpResponse $response, $authorized)
29
    {
30
        $this->response = $response;
31
        $this->authorized = $authorized;
32
    }
33
34
    /**
35
     * @return bool
36
     */
37
    public function isAuthorized()
38
    {
39
        return $this->authorized;
40
    }
41
}
42