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 ( 24594f...2f1bd4 )
by Wade
03:06
created

Stat::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 0
loc 7
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 4
crap 1
1
<?php
2
3
namespace Burthorpe\Runescape\RS3\Stats;
4
5
use Burthorpe\Runescape\RS3\Skills\Contract as SkillContract;
6
7
class Stat implements Contract
8
{
9
    /**
10
     * The skill related to this stat
11
     *
12
     * @var \Burthorpe\Runescape\RS3\Skills\Skill
13
     */
14
    protected $skill;
15
16
    /**
17
     * The players current level in this skill
18
     *
19
     * @var int
20
     */
21
    protected $level;
22
23
    /**
24
     * The players current rank in this skill
25
     *
26
     * @var int
27
     */
28
    protected $rank;
29
30
    /**
31
     * The players current experience in this skill
32
     *
33
     * @var int
34
     */
35
    protected $experience;
36
37
    /**
38
     * @param SkillContract $skill
39
     * @param $level
40
     * @param $rank
41
     * @param $experience
42
     */
43 4
    public function __construct(SkillContract $skill, $level, $rank, $experience)
44
    {
45 4
        $this->skill      = $skill;
46 4
        $this->level      = $level;
47 4
        $this->rank       = $rank;
48 4
        $this->experience = $experience;
49 4
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54 1
    public function getSkill()
55
    {
56 1
        return $this->skill;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62 1
    public function getLevel()
63
    {
64 1
        return $this->level;
65
    }
66
67
    /**
68
     * {@inheritdoc}
69
     */
70
    public function getRank()
71
    {
72
        return $this->rank;
73
    }
74
75
    /**
76
     * {@inheritdoc}
77
     */
78
    public function getExperience()
79
    {
80
        return $this->experience;
81
    }
82
}
83