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
|
|
|
|