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   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 76
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 71.43%

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 5
c 2
b 1
f 1
lcom 0
cbo 0
dl 0
loc 76
ccs 10
cts 14
cp 0.7143
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getRank() 0 4 1
A getExperience() 0 4 1
A __construct() 0 7 1
A getSkill() 0 4 1
A getLevel() 0 4 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