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.

Session::getTorrentCount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 2
Metric Value
c 3
b 0
f 2
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Transmission\Model\Stats;
3
4
use Transmission\Model\AbstractModel;
5
6
/**
7
 * @author Joysen Chellem
8
 */
9
class Session extends AbstractModel
10
{
11
    /**
12
     * @var integer
13
     */
14
    private $activeTorrentCount;
15
16
    /**
17
     * @var integer
18
     */
19
    private $downloadSpeed;
20
21
    /**
22
     * @var integer
23
     */
24
    private $pausedTorrentCount;
25
26
    /**
27
     * @var integer
28
     */
29
    private $torrentCount;
30
31
    /**
32
     * @var integer
33
     */
34
    private $uploadSpeed;
35
36
    /**
37
     * @var Stats
38
     */
39
    private $cumulative;
40
41
    /**
42
     * @var Stats
43
     */
44
    private $current;
45
46
    /**
47
     * Gets the value of activeTorrentCount.
48
     *
49
     * @return integer
50
     */
51
    public function getActiveTorrentCount()
52
    {
53
        return $this->activeTorrentCount;
54
    }
55
56
    /**
57
     * Sets the value of activeTorrentCount.
58
     *
59
     * @param integer $activeTorrentCount the active torrent count
60
     */
61
    public function setActiveTorrentCount($activeTorrentCount)
62
    {
63
        $this->activeTorrentCount = $activeTorrentCount;
64
    }
65
66
    /**
67
     * Gets the value of downloadSpeed.
68
     *
69
     * @return integer
70
     */
71
    public function getDownloadSpeed()
72
    {
73
        return $this->downloadSpeed;
74
    }
75
76
    /**
77
     * Sets the value of downloadSpeed.
78
     *
79
     * @param integer $downloadSpeed the download speed
80
     */
81
    public function setDownloadSpeed($downloadSpeed)
82
    {
83
        $this->downloadSpeed = $downloadSpeed;
84
    }
85
86
    /**
87
     * Gets the value of pausedTorrentCount.
88
     *
89
     * @return integer
90
     */
91
    public function getPausedTorrentCount()
92
    {
93
        return $this->pausedTorrentCount;
94
    }
95
96
    /**
97
     * Sets the value of pausedTorrentCount.
98
     *
99
     * @param integer $pausedTorrentCount the paused torrent count
100
     */
101
    public function setPausedTorrentCount($pausedTorrentCount)
102
    {
103
        $this->pausedTorrentCount = $pausedTorrentCount;
104
    }
105
106
    /**
107
     * Gets the value of torrentCount.
108
     *
109
     * @return integer
110
     */
111
    public function getTorrentCount()
112
    {
113
        return $this->torrentCount;
114
    }
115
116
    /**
117
     * Sets the value of torrentCount.
118
     *
119
     * @param integer $torrentCount the torrent count
120
     */
121
    public function setTorrentCount($torrentCount)
122
    {
123
        $this->torrentCount = $torrentCount;
124
    }
125
126
    /**
127
     * Gets the value of uploadSpeed.
128
     *
129
     * @return integer
130
     */
131
    public function getUploadSpeed()
132
    {
133
        return $this->uploadSpeed;
134
    }
135
136
    /**
137
     * Sets the value of uploadSpeed.
138
     *
139
     * @param integer $uploadSpeed the upload speed
140
     */
141
    public function setUploadSpeed($uploadSpeed)
142
    {
143
        $this->uploadSpeed = $uploadSpeed;
144
    }
145
146
    /**
147
     * Gets the value of cumulative.
148
     *
149
     * @return Stats
150
     */
151
    public function getCumulative()
152
    {
153
        return $this->cumulative;
154
    }
155
156
    /**
157
     * Sets the value of cumulative.
158
     *
159
     * @param Stats $cumulative the cumulative
160
     */
161
    public function setCumulative(Stats $cumulative)
162
    {
163
        $this->cumulative = $cumulative;
164
    }
165
166
    /**
167
     * Gets the value of current.
168
     *
169
     * @return Stats
170
     */
171
    public function getCurrent()
172
    {
173
        return $this->current;
174
    }
175
176
    /**
177
     * Sets the value of current.
178
     *
179
     * @param Stats $current the current
180
     */
181
    public function setCurrent(Stats $current)
182
    {
183
        $this->current = $current;
184
    }
185
186
    /**
187
     * {@inheritDoc}
188
     */
189
    public static function getMapping()
190
    {
191
        return array(
192
            'activeTorrentCount' => 'activeTorrentCount',
193
            'downloadSpeed' => 'downloadSpeed',
194
            'pausedTorrentCount' => 'pausedTorrentCount',
195
            'torrentCount' => 'torrentCount',
196
            'uploadSpeed' => 'uploadSpeed',
197
            'cumulative-stats'=>'cumulative',
198
            'current-stats' => 'current',
199
        );
200
    }
201
}
202