28,14 → 28,21 |
/** |
* model of the cpu |
* |
* @var String |
* @var string |
*/ |
private $_model = ""; |
|
/** |
* cpu voltage |
* |
* @var Float |
*/ |
private $_voltage = 0; |
|
/** |
* speed of the cpu in hertz |
* |
* @var Integer |
* @var int |
*/ |
private $_cpuSpeed = 0; |
|
42,7 → 49,7 |
/** |
* max speed of the cpu in hertz |
* |
* @var Integer |
* @var int |
*/ |
private $_cpuSpeedMax = 0; |
|
49,7 → 56,7 |
/** |
* min speed of the cpu in hertz |
* |
* @var Integer |
* @var int |
*/ |
private $_cpuSpeedMin = 0; |
|
56,7 → 63,7 |
/** |
* cache size in bytes, if available |
* |
* @var Integer |
* @var int |
*/ |
private $_cache = null; |
|
63,7 → 70,7 |
/** |
* virtualization, if available |
* |
* @var String |
* @var string |
*/ |
private $_virt = null; |
|
70,7 → 77,7 |
/** |
* busspeed in hertz, if available |
* |
* @var Integer |
* @var int |
*/ |
private $_busSpeed = null; |
|
77,7 → 84,7 |
/** |
* bogomips of the cpu, if available |
* |
* @var Integer |
* @var int |
*/ |
private $_bogomips = null; |
|
84,7 → 91,7 |
/** |
* temperature of the cpu, if available |
* |
* @var Integer |
* @var int |
*/ |
private $_temp = null; |
|
91,7 → 98,7 |
/** |
* vendorid, if available |
* |
* @var String |
* @var string |
*/ |
private $_vendorid = null; |
|
98,7 → 105,7 |
/** |
* current load in percent of the cpu, if available |
* |
* @var Integer |
* @var int |
*/ |
private $_load = null; |
|
121,7 → 128,7 |
* |
* @see Cpu::$_model |
* |
* @return Void |
* @return void |
*/ |
public function setModel($model) |
{ |
129,11 → 136,37 |
} |
|
/** |
* Returns $_voltage. |
* |
* @see Cpu::$_voltage |
* |
* @return Float |
*/ |
public function getVoltage() |
{ |
return $this->_voltage; |
} |
|
/** |
* Sets $_voltage. |
* |
* @param int $voltage voltage |
* |
* @see Cpu::$_voltage |
* |
* @return void |
*/ |
public function setVoltage($voltage) |
{ |
$this->_voltage = $voltage; |
} |
|
/** |
* Returns $_cpuSpeed. |
* |
* @see Cpu::$_cpuSpeed |
* |
* @return Integer |
* @return int |
*/ |
public function getCpuSpeed() |
{ |
143,11 → 176,11 |
/** |
* Sets $_cpuSpeed. |
* |
* @param Integer $cpuSpeed cpuspeed |
* @param int $cpuSpeed cpuspeed |
* |
* @see Cpu::$_cpuSpeed |
* |
* @return Void |
* @return void |
*/ |
public function setCpuSpeed($cpuSpeed) |
{ |
159,7 → 192,7 |
* |
* @see Cpu::$_cpuSpeedMAx |
* |
* @return Integer |
* @return int |
*/ |
public function getCpuSpeedMax() |
{ |
169,11 → 202,11 |
/** |
* Sets $_cpuSpeedMax. |
* |
* @param Integer $cpuSpeedMax cpuspeedmax |
* @param int $cpuSpeedMax cpuspeedmax |
* |
* @see Cpu::$_cpuSpeedMax |
* |
* @return Void |
* @return void |
*/ |
public function setCpuSpeedMax($cpuSpeedMax) |
{ |
185,7 → 218,7 |
* |
* @see Cpu::$_cpuSpeedMin |
* |
* @return Integer |
* @return int |
*/ |
public function getCpuSpeedMin() |
{ |
195,11 → 228,11 |
/** |
* Sets $_cpuSpeedMin. |
* |
* @param Integer $cpuSpeedMin cpuspeedmin |
* @param int $cpuSpeedMin cpuspeedmin |
* |
* @see Cpu::$_cpuSpeedMin |
* |
* @return Void |
* @return void |
*/ |
public function setCpuSpeedMin($cpuSpeedMin) |
{ |
211,7 → 244,7 |
* |
* @see Cpu::$_cache |
* |
* @return Integer |
* @return int |
*/ |
public function getCache() |
{ |
221,11 → 254,11 |
/** |
* Sets $_cache. |
* |
* @param Integer $cache cache size |
* @param int $cache cache size |
* |
* @see Cpu::$_cache |
* |
* @return Void |
* @return void |
*/ |
public function setCache($cache) |
{ |
251,7 → 284,7 |
* |
* @see Cpu::$_virt |
* |
* @return Void |
* @return void |
*/ |
public function setVirt($virt) |
{ |
263,7 → 296,7 |
* |
* @see Cpu::$_busSpeed |
* |
* @return Integer |
* @return int |
*/ |
public function getBusSpeed() |
{ |
273,11 → 306,11 |
/** |
* Sets $_busSpeed. |
* |
* @param Integer $busSpeed busspeed |
* @param int $busSpeed busspeed |
* |
* @see Cpu::$_busSpeed |
* |
* @return Void |
* @return void |
*/ |
public function setBusSpeed($busSpeed) |
{ |
289,7 → 322,7 |
* |
* @see Cpu::$_bogomips |
* |
* @return Integer |
* @return int |
*/ |
public function getBogomips() |
{ |
299,11 → 332,11 |
/** |
* Sets $_bogomips. |
* |
* @param Integer $bogomips bogompis |
* @param int $bogomips bogompis |
* |
* @see Cpu::$_bogomips |
* |
* @return Void |
* @return void |
*/ |
public function setBogomips($bogomips) |
{ |
315,7 → 348,7 |
* |
* @see Cpu::$_temp |
* |
* @return Integer |
* @return int |
*/ |
/* |
public function getTemp() |
327,11 → 360,11 |
/** |
* Sets $_temp. |
* |
* @param Integer $temp temperature |
* @param int $temp temperature |
* |
* @see Cpu::$_temp |
* |
* @return Void |
* @return void |
*/ |
/* |
public function setTemp($temp) |
359,11 → 392,11 |
* |
* @see Cpu::$_vendorid |
* |
* @return Void |
* @return void |
*/ |
public function setVendorId($vendorid) |
{ |
$this->_vendorid = $vendorid; |
$this->_vendorid = trim(preg_replace('/[\s!]/', '', $vendorid)); |
} |
|
/** |
371,7 → 404,7 |
* |
* @see CpuDevice::$_load |
* |
* @return Integer |
* @return int |
*/ |
public function getLoad() |
{ |
381,11 → 414,11 |
/** |
* Sets $_load. |
* |
* @param Integer $load load percent |
* @param int $load load percent |
* |
* @see CpuDevice::$_load |
* |
* @return Void |
* @return void |
*/ |
public function setLoad($load) |
{ |