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 (#4)
by Cees-Jan
02:01
created

Profile::name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Twitter\Resource;
4
5
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
6
use ApiClients\Foundation\Resource\AbstractResource;
7
8
/**
9
 * @EmptyResource("EmptyProfile")
10
 */
11
abstract class Profile extends AbstractResource implements ProfileInterface
12
{
13
    /**
14
     * @var int
15
     */
16
    protected $id;
17
18
    /**
19
     * @var string
20
     */
21
    protected $id_str;
22
23
    /**
24
     * @var string
25
     */
26
    protected $name;
27
28
    /**
29
     * @var string
30
     */
31
    protected $screen_name;
32
33
    /**
34
     * @var string
35
     */
36
    protected $location;
37
38
    /**
39
     * @var string
40
     */
41
    protected $profile_location;
42
43
    /**
44
     * @var string
45
     */
46
    protected $description;
47
48
    /**
49
     * @var array
50
     */
51
    protected $changedFields = [];
52
53
    /**
54
     * @return int
55
     */
56 4
    public function id() : int
57
    {
58 4
        return $this->id;
59
    }
60
61
    /**
62
     * @return string
63
     */
64 4
    public function idStr() : string
65
    {
66 4
        return $this->id_str;
67
    }
68
69
    /**
70
     * @return string
71
     */
72 4
    public function name() : string
73
    {
74 4
        return $this->name;
75
    }
76
77
    /**
78
     * @return string
79
     */
80 4
    public function screenName() : string
81
    {
82 4
        return $this->screen_name;
83
    }
84
85
    /**
86
     * @return string
87
     */
88 4
    public function location() : string
89
    {
90 4
        return $this->location;
91
    }
92
93
    /**
94
     * @return string
95
     */
96 4
    public function profileLocation() : string
97
    {
98 4
        return $this->profile_location;
99
    }
100
101
    /**
102
     * @return string
103
     */
104 4
    public function description() : string
105
    {
106 4
        return $this->description;
107
    }
108
109
    /**
110
     * @param string $name
111
     * @return ProfileInterface
112
     */
113
    public function withName(string $name): ProfileInterface
114
    {
115
        $clone = clone $this;
116
        $clone->name = $name;
117
        $clone->changedFields['name'] = 'name';
118
        return $clone;
119
    }
120
121
    public function putProfile()
122
    {
123
    }
124
}
125