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.

Visa   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 78
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 90%

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 78
ccs 18
cts 20
cp 0.9
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 5 1
A getId() 0 3 1
A setCountry() 0 5 1
A getCountry() 0 3 1
A setCreatedAt() 0 5 1
A getCreatedAt() 0 3 1
A setLastRenewal() 0 5 1
A getLastRenewal() 0 3 1
1
<?php
2
3
namespace PhpAbac\Example;
4
5
class Visa {
6
    /** @var int **/
7
    protected $id;
8
    /** @var Country **/
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 8
    public function setId($id) {
20 8
        $this->id = $id;
21
        
22 8
        return $this;
23
    }
24
    
25
    /**
26
     * @return int
27
     */
28 6
    public function getId() {
29 6
        return $this->id;
30
    }   
31
    
32
    /**
33
     * @param Country $country
34
     * @return \PhpAbac\Example\Visa
35
     */
36 8
    public function setCountry(Country $country) {
37 8
        $this->country = $country;
38
        
39 8
        return $this;
40
    }
41
    
42
    /**
43
     * @return Country
44
     */
45 4
    public function getCountry() {
46 4
        return $this->country;
47
    }
48
    
49
    /**
50
     * @param \DateTime $createdAt
51
     * @return \PhpAbac\Example\Visa
52
     */
53 8
    public function setCreatedAt(\DateTime $createdAt) {
54 8
        $this->createdAt = $createdAt;
55
        
56 8
        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 8
    public function setLastRenewal(\DateTime $lastRenewal) {
71 8
        $this->lastRenewal = $lastRenewal;
72
        
73 8
        return $this;
74
    }
75
    
76
    /**
77
     * @return \DateTime
78
     */
79 4
    public function getLastRenewal() {
80 4
        return $this->lastRenewal;
81
    }
82
}