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.

Country   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 40
ccs 8
cts 10
cp 0.8
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 5 1
A getName() 0 3 1
A setCode() 0 5 1
A getCode() 0 3 1
1
<?php
2
3
namespace PhpAbac\Example;
4
5
class Country {
6
    /** @var string **/
7
    protected $name;
8
    /** @var string **/
9
    protected $code;
10
    
11
    /**
12
     * @param string $name
13
     * @return \PhpAbac\Example\Country
14
     */
15 8
    public function setName($name) {
16 8
        $this->name = $name;
17
        
18 8
        return $this;
19
    }
20
    
21
    /**
22
     * @return string
23
     */
24
    public function getName() {
25
        return $this->name;
26
    }
27
    
28
    /**
29
     * @param string $code
30
     * @return \PhpAbac\Example\Country
31
     */
32 8
    public function setCode($code) {
33 8
        $this->code = $code;
34
        
35 8
        return $this;
36
    }
37
    
38
    /**
39
     * @return string
40
     */
41 4
    public function getCode() {
42 4
        return $this->code;
43
    }
44
}