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 ( 35d367...dc130e )
by Axel
02:52
created

Country::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 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 2
    public function setName($name) {
16 2
        $this->name = $name;
17
        
18 2
        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 2
    public function setCode($code) {
33 2
        $this->code = $code;
34
        
35 2
        return $this;
36
    }
37
    
38
    /**
39
     * @return string
40
     */
41 2
    public function getCode() {
42 2
        return $this->code;
43
    }
44
}