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.

PropertyStub::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Emarref\Jwt\Token;
4
5
class PropertyStub implements PropertyInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $name;
11
12
    /**
13
     * @var mixed
14
     */
15
    private $value;
16
17
    /**
18
     * @param string|null $name
19
     * @param mixed|null $value
20
     */
21
    public function __construct($name = null, $value = null)
22
    {
23
        $this->setName($name);
24
        $this->setValue($value);
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getName()
31
    {
32
        return $this->name;
33
    }
34
35
    /**
36
     * @param string $name
37
     * @return $this
38
     */
39
    public function setName($name)
40
    {
41
        $this->name = $name;
42
        return $this;
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getValue()
49
    {
50
        return $this->value;
51
    }
52
53
    /**
54
     * @param mixed
55
     * @return $this
56
     */
57
    public function setValue($value)
58
    {
59
        $this->value = $value;
60
        return $this;
61
    }
62
}
63