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.

Skill::isCombat()   A
last analyzed

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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Burthorpe\Runescape\RS3\Skills;
4
5
abstract class Skill implements Contract
6
{
7
    /**
8
     * The skills ID
9
     *
10
     * @var int
11
     */
12
    protected $id;
13
14
    /**
15
     * The skills name
16
     *
17
     * @var string
18
     */
19
    protected $name;
20
21
    /**
22
     * Maximum possible experience in this skill
23
     *
24
     * @var int
25
     */
26
    protected $maximumExperience;
27
28
    /**
29
     * Maximum possible level in this skill
30
     *
31
     * @var int
32
     */
33
    protected $maximumLevel;
34
35
    /**
36
     * Does the skill effect a players combat level
37
     *
38
     * @var bool
39
     */
40
    protected $isCombat;
41
42
    /**
43
     * Does the skill require a membership subscription
44
     *
45
     * @var bool
46
     */
47
    protected $isMembers;
48
49
    /**
50
     * {@inheritdoc}
51
     */
52 33
    public function getId()
53
    {
54 33
        return $this->id;
55
    }
56
57
    /**
58
     * {@inheritdoc}
59
     */
60 29
    public function getName()
61
    {
62 29
        return $this->name;
63
    }
64
65
    /**
66
     * {@inheritdoc}
67
     */
68 28
    public function getMaximumExperience()
69
    {
70 28
        return $this->maximumExperience;
71
    }
72
73
    /**
74
     * {@inheritdoc}
75
     */
76 28
    public function getMaximumLevel()
77
    {
78 28
        return $this->maximumLevel;
79
    }
80
81
    /**
82
     * {@inheritdoc}
83
     */
84 28
    public function isCombat()
85
    {
86 28
        return $this->isCombat;
87
    }
88
89
    /**
90
     * {@inheritdoc}
91
     */
92 28
    public function isMembers()
93
    {
94 28
        return $this->isMembers;
95
    }
96
}
97