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
Pull Request — master (#32)
by
unknown
03:09
created

Token::setTokenBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Emarref\Jwt;
4
5
use Emarref\Jwt\Claim;
6
use Emarref\Jwt\HeaderParameter;
7
use Emarref\Jwt\Token\Header;
8
use Emarref\Jwt\Token\Payload;
9
10
class Token
11
{
12
    /**
13
     * @var Header
14
     */
15
    private $header;
16
17
    /**
18
     * @var Payload
19
     */
20
    private $payload;
21
22
    /**
23
     * @var string
24
     */
25
    private $signature;
26
27
    /**
28
     * @var tokenBody
29
     */
30
    private $tokenBody;
31
32
    public function __construct()
33
    {
34
        $this->header  = new Header();
35
        $this->payload = new Payload();
36
    }
37
38
    /**
39
     * @param HeaderParameter\ParameterInterface $parameter
40
     * @param bool                               $critical
41
     */
42
    public function addHeader(HeaderParameter\ParameterInterface $parameter, $critical = false)
43
    {
44
        $this->header->setParameter($parameter, $critical);
45
    }
46
47
    /**
48
     * @param Claim\ClaimInterface $claim
49
     */
50
    public function addClaim(Claim\ClaimInterface $claim)
51
    {
52
        $this->payload->setClaim($claim);
53
    }
54
55
    /**
56
     * @return Token\Header
57
     */
58
    public function getHeader()
59
    {
60
        return $this->header;
61
    }
62
63
    /**
64
     * @return Token\Payload
65
     */
66
    public function getPayload()
67
    {
68
        return $this->payload;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getSignature()
75
    {
76
        return $this->signature;
77
    }
78
79
    /**
80
     * @param string $signature
81
     */
82
    public function setSignature($signature)
83
    {
84
        $this->signature = $signature;
85
    }
86
87
    /**
88
     * @param string $body
89
     */
90
    public function setTokenBody($body)
91
    {
92
       $this->tokenBody = $body;
0 ignored issues
show
Documentation Bug introduced by
It seems like $body of type string is incompatible with the declared type object<Emarref\Jwt\tokenBody> of property $tokenBody.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getTokenBody()
99
    {
100
       return $this->tokenBody;
101
    }
102
}
103