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.

Tracker   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 5
Bugs 0 Features 2
Metric Value
wmc 9
c 5
b 0
f 2
lcom 0
cbo 1
dl 0
loc 99
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 4 1
A getId() 0 4 1
A setTier() 0 4 1
A getTier() 0 4 1
A setScrape() 0 4 1
A getScrape() 0 4 1
A setAnnounce() 0 4 1
A getAnnounce() 0 4 1
A getMapping() 0 9 1
1
<?php
2
namespace Transmission\Model;
3
4
/**
5
 * @author Ramon Kleiss <[email protected]>
6
 */
7
class Tracker extends AbstractModel
8
{
9
    /**
10
     * @var integer
11
     */
12
    protected $id;
13
14
    /**
15
     * @var integer
16
     */
17
    protected $tier;
18
19
    /**
20
     * @var string
21
     */
22
    protected $scrape;
23
24
    /**
25
     * @var string
26
     */
27
    protected $announce;
28
29
    /**
30
     * @param integer $id
31
     */
32
    public function setId($id)
33
    {
34
        $this->id = (integer) $id;
35
    }
36
37
    /**
38
     * @return integer
39
     */
40
    public function getId()
41
    {
42
        return $this->id;
43
    }
44
45
    /**
46
     * @param integer $tier
47
     */
48
    public function setTier($tier)
49
    {
50
        $this->tier = (integer) $tier;
51
    }
52
53
    /**
54
     * @return integer
55
     */
56
    public function getTier()
57
    {
58
        return $this->tier;
59
    }
60
61
    /**
62
     * @param string $scrape
63
     */
64
    public function setScrape($scrape)
65
    {
66
        $this->scrape = (string) $scrape;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function getScrape()
73
    {
74
        return $this->scrape;
75
    }
76
77
    /**
78
     * @param string $announce
79
     */
80
    public function setAnnounce($announce)
81
    {
82
        $this->announce = (string) $announce;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getAnnounce()
89
    {
90
        return $this->announce;
91
    }
92
93
    /**
94
     * {@inheritDoc}
95
     */
96
    public static function getMapping()
97
    {
98
        return array(
99
            'id' => 'id',
100
            'tier' => 'tier',
101
            'scrape' => 'scrape',
102
            'announce' => 'announce'
103
        );
104
    }
105
}
106