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   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getWord() 0 4 1
A getLang() 0 4 1
A getLength() 0 4 1
A getComplexity() 0 4 1
A __construct() 0 7 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