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.

Word::getWord()   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 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace WordSelector\Entity;
4
5
class Word
6
{
7
    /**
8
     * @var string
9
     **/
10
    protected $word;
11
12
    /**
13
     * @var int
14
     **/
15
    protected $length;
16
17
    /**
18
     * @var string
19
     **/
20
    protected $lang;
21
22
    /**
23
     * @var float
24
     */
25
    protected $complexity;
26
27
    /**
28
     * Constructor
29
     *
30
     * @param string $word
31
     * @param string $lang
32
     * @param float  $complexity
33
     */
34 6
    public function __construct($word, $lang, $complexity)
35
    {
36 6
        $this->word = $word;
37 6
        $this->lang = $lang;
38 6
        $this->length = strlen($this->word);
39 6
        $this->complexity = $complexity;
40 6
    }
41
42
    /**
43
     * @return string
44
     */
45 3
    public function getWord()
46
    {
47 3
        return $this->word;
48
    }
49
50
    /**
51
     * @return string
52
     */
53 3
    public function getLang()
54
    {
55 3
        return $this->lang;
56
    }
57
58
    /**
59
     * @return int
60
     */
61 3
    public function getLength()
62
    {
63 3
        return $this->length;
64
    }
65
66
    /**
67
     * @return float
68
     */
69 3
    public function getComplexity()
70
    {
71 3
        return $this->complexity;
72
    }
73
}
74