MBInfo::setMbFan()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * MBInfo TO class
4
 *
5
 * PHP version 5
6
 *
7
 * @category  PHP
8
 * @package   PSI_TO
9
 * @author    Michael Cramer <[email protected]>
10
 * @copyright 2009 phpSysInfo
11
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License
12
 * @version   SVN: $Id: class.MBInfo.inc.php 253 2009-06-17 13:07:50Z bigmichi1 $
13
 * @link      http://phpsysinfo.sourceforge.net
14
 */
15
 /**
16
 * MBInfo TO class
17
 *
18
 * @category  PHP
19
 * @package   PSI_TO
20
 * @author    Michael Cramer <[email protected]>
21
 * @copyright 2009 phpSysInfo
22
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License
23
 * @version   Release: 3.0
24
 * @link      http://phpsysinfo.sourceforge.net
25
 */
26
class MBInfo
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
27
{
28
    /**
29
     * array with SensorDevices for temperatures
30
     *
31
     * @see SensorDevice
32
     *
33
     * @var Array
34
     */
35
    private $_mbTemp = array();
36
37
    /**
38
     * array with SensorDevices for fans
39
     *
40
     * @see SensorDevice
41
     *
42
     * @var Array
43
     */
44
    private $_mbFan = array();
45
46
    /**
47
     * array with SensorDevices for voltages
48
     *
49
     * @see SensorDevice
50
     *
51
     * @var Array
52
     */
53
    private $_mbVolt = array();
54
55
    /**
56
     * array with SensorDevices for power
57
     *
58
     * @see SensorDevice
59
     *
60
     * @var Array
61
     */
62
    private $_mbPower = array();
63
64
    /**
65
     * array with SensorDevices for apmers
66
     *
67
     * @see SensorDevice
68
     *
69
     * @var Array
70
     */
71
    private $_mbCurrent = array();
72
73
    /**
74
     * Returns $_mbFan.
75
     *
76
     * @see System::$_mbFan
77
     *
78
     * @return Array
79
     */
80
    public function getMbFan()
81
    {
82
        return $this->_mbFan;
83
    }
84
85
    /**
86
     * Sets $_mbFan.
87
     *
88
     * @param SensorDevice $mbFan fan device
89
     *
90
     * @see System::$_mbFan
91
     *
92
     * @return Void
93
     */
94
    public function setMbFan($mbFan)
95
    {
96
        array_push($this->_mbFan, $mbFan);
97
    }
98
99
    /**
100
     * Returns $_mbTemp.
101
     *
102
     * @see System::$_mbTemp
103
     *
104
     * @return Array
105
     */
106
    public function getMbTemp()
107
    {
108
        return $this->_mbTemp;
109
    }
110
111
    /**
112
     * Sets $_mbTemp.
113
     *
114
     * @param Sensor $mbTemp temp device
115
     *
116
     * @see System::$_mbTemp
117
     *
118
     * @return Void
119
     */
120
    public function setMbTemp($mbTemp)
121
    {
122
        array_push($this->_mbTemp, $mbTemp);
123
    }
124
125
    /**
126
     * Returns $_mbVolt.
127
     *
128
     * @see System::$_mbVolt
129
     *
130
     * @return Array
131
     */
132
    public function getMbVolt()
133
    {
134
        return $this->_mbVolt;
135
    }
136
137
    /**
138
     * Sets $_mbVolt.
139
     *
140
     * @param Sensor $mbVolt voltage device
141
     *
142
     * @see System::$_mbVolt
143
     *
144
     * @return Void
145
     */
146
    public function setMbVolt($mbVolt)
147
    {
148
        array_push($this->_mbVolt, $mbVolt);
149
    }
150
151
    /**
152
     * Returns $_mbPower.
153
     *
154
     * @see System::$_mbPower
155
     *
156
     * @return Array
157
     */
158
    public function getMbPower()
159
    {
160
        return $this->_mbPower;
161
    }
162
163
    /**
164
     * Sets $_mbPower.
165
     *
166
     * @param Sensor $mbPower power device
167
     *
168
     * @see System::$_mbPower
169
     *
170
     * @return Void
171
     */
172
    public function setMbPower($mbPower)
173
    {
174
        array_push($this->_mbPower, $mbPower);
175
    }
176
    /**
177
     * Returns $_mbCurrent.
178
     *
179
     * @see System::$_mbCurrent
180
     *
181
     * @return Array
182
     */
183
    public function getMbCurrent()
184
    {
185
        return $this->_mbCurrent;
186
    }
187
188
    /**
189
     * Sets $_mbCurrent.
190
     *
191
     * @param Sensor $mbCurrent current device
192
     *
193
     * @see System::$_mbCurrent
194
     *
195
     * @return Void
196
     */
197
    public function setMbCurrent($mbCurrent)
198
    {
199
        array_push($this->_mbCurrent, $mbCurrent);
200
    }
201
}
202