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.

Stats   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 141
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 11
c 3
b 0
f 2
lcom 0
cbo 0
dl 0
loc 141
rs 10

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getDownloadedBytes() 0 4 1
A setDownloadedBytes() 0 4 1
A getFilesAdded() 0 4 1
A setFilesAdded() 0 4 1
A getSecondsActive() 0 4 1
A setSecondsActive() 0 4 1
A getSessionCount() 0 4 1
A setSessionCount() 0 4 1
A getUploadedBytes() 0 4 1
A setUploadedBytes() 0 4 1
A getMapping() 0 10 1
1
<?php
2
3
namespace Transmission\Model\Stats;
4
5
use Transmission\Model\ModelInterface;
6
7
/**
8
 * @author Joysen Chellem
9
 */
10
class Stats implements ModelInterface
11
{
12
    /**
13
     * @var integer
14
     */
15
    protected $downloadedBytes;
16
17
    /**
18
     * @var integer
19
     */
20
    protected $filesAdded;
21
22
    /**
23
     * @var integer
24
     */
25
    protected $secondsActive;
26
27
    /**
28
     * @var integer
29
     */
30
    protected $sessionCount;
31
32
    /**
33
     * @var integer
34
     */
35
    protected $uploadedBytes;
36
37
    /**
38
     * Gets the value of downloadedBytes.
39
     *
40
     * @return integer
41
     */
42
    public function getDownloadedBytes()
43
    {
44
        return $this->downloadedBytes;
45
    }
46
47
    /**
48
     * Sets the value of downloadedBytes.
49
     *
50
     * @param integer $downloadedBytes the downloaded bytes
51
     */
52
    public function setDownloadedBytes($downloadedBytes)
53
    {
54
        $this->downloadedBytes = $downloadedBytes;
55
    }
56
57
    /**
58
     * Gets the value of filesAdded.
59
     *
60
     * @return integer
61
     */
62
    public function getFilesAdded()
63
    {
64
        return $this->filesAdded;
65
    }
66
67
    /**
68
     * Sets the value of filesAdded.
69
     *
70
     * @param integer $filesAdded the files added
71
     */
72
    public function setFilesAdded($filesAdded)
73
    {
74
        $this->filesAdded = $filesAdded;
75
    }
76
77
    /**
78
     * Gets the value of secondsActive.
79
     *
80
     * @return integer
81
     */
82
    public function getSecondsActive()
83
    {
84
        return $this->secondsActive;
85
    }
86
87
    /**
88
     * Sets the value of secondsActive.
89
     *
90
     * @param integer $secondsActive the seconds active
91
     */
92
    public function setSecondsActive($secondsActive)
93
    {
94
        $this->secondsActive = $secondsActive;
95
    }
96
97
    /**
98
     * Gets the value of sessionCount.
99
     *
100
     * @return integer
101
     */
102
    public function getSessionCount()
103
    {
104
        return $this->sessionCount;
105
    }
106
107
    /**
108
     * Sets the value of sessionCount.
109
     *
110
     * @param integer $sessionCount the session count
111
     */
112
    public function setSessionCount($sessionCount)
113
    {
114
        $this->sessionCount = $sessionCount;
115
    }
116
117
    /**
118
     * Gets the value of uploadedBytes.
119
     *
120
     * @return integer
121
     */
122
    public function getUploadedBytes()
123
    {
124
        return $this->uploadedBytes;
125
    }
126
127
    /**
128
     * Sets the value of uploadedBytes.
129
     *
130
     * @param integer $uploadedBytes the uploaded bytes
131
     */
132
    public function setUploadedBytes($uploadedBytes)
133
    {
134
        $this->uploadedBytes = $uploadedBytes;
135
    }
136
137
    /**
138
     * {@inheritDoc}
139
     */
140
    public static function getMapping()
141
    {
142
        return array(
143
            'downloadedBytes' => 'downloadedBytes',
144
            'filesAdded' => 'filesAdded',
145
            'secondsActive' => 'secondsActive',
146
            'sessionCount' => 'sessionCount',
147
            'uploadedBytes' => 'uploadedBytes'
148
        );
149
    }
150
}
151