1 | <?php |
||
7 | class ServerHistory |
||
8 | { |
||
9 | /** |
||
10 | * @Id @Column(type="integer") @GeneratedValue |
||
11 | **/ |
||
12 | private $id; |
||
|
|||
13 | /** |
||
14 | * @Column(type="integer") |
||
15 | **/ |
||
16 | private $server_id; |
||
17 | /** |
||
18 | * @Column(type="string") |
||
19 | **/ |
||
20 | private $hostname; |
||
21 | /** |
||
22 | * @Column(type="string") |
||
23 | **/ |
||
24 | private $status; |
||
25 | /** |
||
26 | * @Column(type="float") |
||
27 | **/ |
||
28 | private $sys_load; |
||
29 | /** |
||
30 | * @Column(type="integer") |
||
31 | **/ |
||
32 | private $cpu_cores; |
||
33 | /** |
||
34 | * @Column(type="bigint") |
||
35 | **/ |
||
36 | private $memory_usage; |
||
37 | /** |
||
38 | * @Column(type="bigint") |
||
39 | **/ |
||
40 | private $memory_total; |
||
41 | /**; |
||
42 | * @Column(type="bigint") |
||
43 | **/ |
||
44 | private $memory_free; |
||
45 | /** |
||
46 | * @Column(type="bigint") |
||
47 | **/ |
||
48 | private $disk_free; |
||
49 | /** |
||
50 | * @Column(type="bigint") |
||
51 | **/ |
||
52 | private $disk_total; |
||
53 | /** |
||
54 | * @Column(type="bigint") |
||
55 | **/ |
||
56 | private $disk_usage; |
||
57 | /** |
||
58 | * @Column(type="integer") |
||
59 | **/ |
||
60 | private $ping; |
||
61 | /** |
||
62 | * @Column(type="integer") |
||
63 | **/ |
||
64 | private $mysql_slow_query; |
||
65 | /** |
||
66 | * @Column(type="integer") |
||
67 | **/ |
||
68 | private $mysql_query_avg; |
||
69 | /** |
||
70 | * @Column(type="integer") |
||
71 | **/ |
||
72 | private $memcache_hits; |
||
73 | /** |
||
74 | * @Column(type="integer") |
||
75 | **/ |
||
76 | private $memcache_miss; |
||
77 | /** |
||
78 | * @Column(type="integer") |
||
79 | **/ |
||
80 | private $memcache_get; |
||
81 | /** |
||
82 | * @Column(type="integer") |
||
83 | **/ |
||
84 | private $memcache_cmd; |
||
85 | /** |
||
86 | * @Column(type="integer") |
||
87 | **/ |
||
88 | private $memcache_bytes; |
||
89 | /** |
||
90 | * @Column(type="integer") |
||
91 | **/ |
||
92 | private $memcache_max_bytes; |
||
93 | /** |
||
94 | * @Column(type="integer") |
||
95 | **/ |
||
96 | private $time; |
||
97 | |||
98 | public function setServerId($id) |
||
102 | |||
103 | public function setHostname($hostname) |
||
107 | |||
108 | public function setStatus($status) |
||
112 | |||
113 | public function setSysLoad($sysload) |
||
117 | |||
118 | public function setCpuCores($cpuCores) |
||
122 | |||
123 | public function setMemoryUsage($memoryUsage) |
||
127 | |||
128 | public function setMemoryTotal($memoryTotal) |
||
132 | |||
133 | public function setMemoryFree($memoryFree) |
||
137 | |||
138 | public function setDiskUsage($diskUsage) |
||
142 | |||
143 | public function setDiskTotal($diskTotal) |
||
147 | |||
148 | public function setDiskFree($diskFree) |
||
152 | |||
153 | public function setPing($ping) |
||
157 | |||
158 | public function setMysqlSlowQuery($msq) |
||
162 | |||
163 | public function setMysqlQueryAvg($mqv) |
||
167 | |||
168 | public function setMemcacheHits($hits) |
||
172 | |||
173 | public function setMemcacheMiss($miss) |
||
177 | |||
178 | public function setMemcacheGet($get) |
||
182 | |||
183 | public function setMemcacheCmd($cmd) |
||
187 | |||
188 | public function setMemcacheBytes($bytes) |
||
192 | |||
193 | public function setMemcacheMaxBytes($maxBytes) |
||
197 | |||
198 | public function setTime($time) |
||
202 | } |
||
203 |
This check marks private properties in classes that are never used. Those properties can be removed.