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.

TrackerStats::getSeederCount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Transmission\Model;
3
4
/**
5
 * @author Bilal Ghouri <[email protected]>
6
 */
7
class TrackerStats extends AbstractModel
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $host;
13
14
    /**
15
     * @var integer
16
     */
17
    protected $leecherCount;
18
	
19
	/**
20
     * @var integer
21
     */
22
    protected $seederCount;
23
24
    /**
25
     * @var string
26
     */
27
    protected $lastAnnounceResult;
28
29
    /**
30
     * @var string
31
     */
32
    protected $lastScrapeResult;
33
34
    /**
35
     * @param string $host
36
     */
37
    public function setHost($host)
38
    {
39
        $this->host =  (string) $host;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getHost()
46
    {
47
        return $this->host;
48
    }
49
	
50
    /**
51
     * @param string $lastAnnounceResult
52
     */
53
    public function setLastAnnounceResult($lastAnnounceResult)
54
    {
55
        $this->lastAnnounceResult =  (string) $lastAnnounceResult;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getLastAnnounceResult()
62
    {
63
        return $this->lastAnnounceResult;
64
    }
65
	
66
	/**
67
     * @param string $lastScrapeResult
68
     */
69
    public function setLastScrapeResult($lastScrapeResult)
70
    {
71
        $this->lastScrapeResult =  (string) $lastScrapeResult;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getLastScrapeResult()
78
    {
79
        return $this->lastScrapeResult;
80
    }
81
82
    /**
83
     * @param integer $seederCount
84
     */
85
    public function setSeederCount($seederCount)
86
    {
87
        $this->seederCount = (integer) $seederCount;
88
    }
89
90
    /**
91
     * @return integer
92
     */
93
    public function getSeederCount()
94
    {
95
        return $this->seederCount;
96
    }
97
98
    /**
99
     * @param integer $leecherCount
100
     */
101
    public function setLeecherCount($leecherCount)
102
    {
103
        $this->leecherCount = (integer) $leecherCount;
104
    }
105
106
    /**
107
     * @return integer
108
     */
109
    public function getLeecherCount()
110
    {
111
        return $this->leecherCount;
112
    }
113
114
    /**
115
     * {@inheritDoc}
116
     */
117
    public static function getMapping()
118
    {
119
        return array(
120
            'host' => 'host',
121
            'leecherCount' => 'leecherCount',
122
            'seederCount' => 'seederCount',
123
            'lastScrapeResult' => 'lastScrapeResult',
124
            'lastAnnounceResult' => 'lastAnnounceResult'
125
        );
126
    }
127
}
128