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 ( ca9b69...35d367 )
by Axel
03:00
created

Visa::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PhpAbac\Example;
4
5
class Visa {
6
    /** @var int **/
7
    protected $id;
8
    /** @var string **/
9
    protected $country;
10
    /** @var \DateTime **/
11
    protected $createdAt;
12
    /** @var \DateTime **/
13
    protected $lastRenewal;
14
    
15
    /**
16
     * @param int $id
17
     * @return \PhpAbac\Example\Visa
18
     */
19 2
    public function setId($id) {
20 2
        $this->id = $id;
21
        
22 2
        return $this;
23
    }
24
    
25
    /**
26
     * @return int
27
     */
28 2
    public function getId() {
29 2
        return $this->id;
30
    }   
31
    
32
    /**
33
     * @param string $country
34
     * @return \PhpAbac\Example\Visa
35
     */
36 2
    public function setCountry($country) {
37 2
        $this->country = $country;
38
        
39 2
        return $this;
40
    }
41
    
42
    /**
43
     * @return string
44
     */
45 2
    public function getCountry() {
46 2
        return $this->country;
47
    }
48
    
49
    /**
50
     * @param \DateTime $createdAt
51
     * @return \PhpAbac\Example\Visa
52
     */
53 2
    public function setCreatedAt(\DateTime $createdAt) {
54 2
        $this->createdAt = $createdAt;
55
        
56 2
        return $this;
57
    }
58
    
59
    /**
60
     * @return \DateTime
61
     */
62
    public function getCreatedAt() {
63
        return $this->createdAt;
64
    }
65
    
66
    /**
67
     * @param \DateTime $lastRenewal
68
     * @return \PhpAbac\Example\Visa
69
     */
70 2
    public function setLastRenewal(\DateTime $lastRenewal) {
71 2
        $this->lastRenewal = $lastRenewal;
72
        
73 2
        return $this;
74
    }
75
    
76
    /**
77
     * @return \DateTime
78
     */
79 2
    public function getLastRenewal() {
80 2
        return $this->lastRenewal;
81
    }
82
}