Subversion Repositories ALCASAR

Rev

Rev 3037 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3037 Rev 3179
1
<?php
1
<?php
2
/**
2
/**
3
 * UPSDevice TO class
3
 * UPSDevice TO class
4
 *
4
 *
5
 * PHP version 5
5
 * PHP version 5
6
 *
6
 *
7
 * @category  PHP
7
 * @category  PHP
8
 * @package   PSI_TO
8
 * @package   PSI_TO
9
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
9
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
10
 * @copyright 2009 phpSysInfo
10
 * @copyright 2009 phpSysInfo
11
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
11
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
12
 * @version   SVN: $Id: class.UPSDevice.inc.php 262 2009-06-22 10:48:33Z bigmichi1 $
12
 * @version   SVN: $Id: class.UPSDevice.inc.php 262 2009-06-22 10:48:33Z bigmichi1 $
13
 * @link      http://phpsysinfo.sourceforge.net
13
 * @link      http://phpsysinfo.sourceforge.net
14
 */
14
 */
15
 /**
15
 /**
16
 * UPSDevice TO class
16
 * UPSDevice TO class
17
 *
17
 *
18
 * @category  PHP
18
 * @category  PHP
19
 * @package   PSI_TO
19
 * @package   PSI_TO
20
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
20
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
21
 * @copyright 2009 phpSysInfo
21
 * @copyright 2009 phpSysInfo
22
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
22
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
23
 * @version   Release: 3.0
23
 * @version   Release: 3.0
24
 * @link      http://phpsysinfo.sourceforge.net
24
 * @link      http://phpsysinfo.sourceforge.net
25
 */
25
 */
26
class UPSDevice
26
class UPSDevice
27
{
27
{
28
    /**
28
    /**
29
     * name of the ups
29
     * name of the ups
30
     *
30
     *
31
     * @var string
31
     * @var string
32
     */
32
     */
33
    private $_name = "";
33
    private $_name = "";
34
 
34
 
35
    /**
35
    /**
36
     * model of the ups
36
     * model of the ups
37
     *
37
     *
38
     * @var string
38
     * @var string
39
     */
39
     */
40
    private $_model = "";
40
    private $_model = "";
41
 
41
 
42
    /**
42
    /**
43
     * mode of the ups
43
     * mode of the ups
44
     *
44
     *
45
     * @var string
45
     * @var string
46
     */
46
     */
47
    private $_mode = "";
47
    private $_mode = "";
48
 
48
 
49
    /**
49
    /**
50
     * last start time
50
     * last start time
51
     *
51
     *
52
     * @var string
52
     * @var string
53
     */
53
     */
54
    private $_startTime = "";
54
    private $_startTime = "";
55
 
55
 
56
    /**
56
    /**
57
     * status of the ups
57
     * status of the ups
58
     *
58
     *
59
     * @var string
59
     * @var string
60
     */
60
     */
61
    private $_status = "";
61
    private $_status = "";
62
 
62
 
63
    /**
63
    /**
64
     * temperature of the ups
64
     * temperature of the ups
65
     *
65
     *
66
     * @var int
66
     * @var string
67
     */
67
     */
68
    private $_temperatur = null;
68
    private $_temperatur = null;
69
 
69
 
70
    /**
70
    /**
71
     * outages count
71
     * outages count
72
     *
72
     *
73
     * @var int
73
     * @var int
74
     */
74
     */
75
    private $_outages = null;
75
    private $_outages = null;
76
 
76
 
77
    /**
77
    /**
78
     * date of last outtage
78
     * date of last outtage
79
     *
79
     *
80
     * @var string
80
     * @var string
81
     */
81
     */
82
    private $_lastOutage = null;
82
    private $_lastOutage = null;
83
 
83
 
84
    /**
84
    /**
85
     * date of last outage finish
85
     * date of last outage finish
86
     *
86
     *
87
     * @var string
87
     * @var string
88
     */
88
     */
89
    private $_lastOutageFinish = null;
89
    private $_lastOutageFinish = null;
90
 
90
 
91
    /**
91
    /**
92
     * line volt
92
     * line volt
93
     *
93
     *
94
     * @var int
94
     * @var float
95
     */
95
     */
96
    private $_lineVoltage = null;
96
    private $_lineVoltage = null;
97
 
97
 
98
    /**
98
    /**
99
     * line freq
99
     * line freq
100
     *
100
     *
101
     * @var int
101
     * @var int
102
     */
102
     */
103
    private $_lineFrequency = null;
103
    private $_lineFrequency = null;
104
 
104
 
105
    /**
105
    /**
106
     * current load of the ups in percent
106
     * current load of the ups in percent
107
     *
107
     *
108
     * @var int
108
     * @var float
109
     */
109
     */
110
    private $_load = null;
110
    private $_load = null;
111
 
111
 
112
    /**
112
    /**
113
     * battery installation date
113
     * battery installation date
114
     *
114
     *
115
     * @var string
115
     * @var string
116
     */
116
     */
117
    private $_batteryDate = null;
117
    private $_batteryDate = null;
118
 
118
 
119
    /**
119
    /**
120
     * current battery volt
120
     * current battery volt
121
     *
121
     *
122
     * @var int
122
     * @var float
123
     */
123
     */
124
    private $_batteryVoltage = null;
124
    private $_batteryVoltage = null;
125
 
125
 
126
    /**
126
    /**
127
     * current charge in percent of the battery
127
     * current charge in percent of the battery
128
     *
128
     *
129
     * @var int
129
     * @var float
130
     */
130
     */
131
    private $_batterCharge = null;
131
    private $_batterCharge = null;
132
 
132
 
133
    /**
133
    /**
134
     * time left
134
     * time left
135
     *
135
     *
136
     * @var string
136
     * @var string
137
     */
137
     */
138
    private $_timeLeft = null;
138
    private $_timeLeft = null;
139
 
139
 
140
    /**
140
    /**
141
     * beeper enabled or disabled
141
     * beeper enabled or disabled
142
     *
142
     *
143
     * @var string
143
     * @var string
144
     */
144
     */
145
    private $_beeperStatus = null;
145
    private $_beeperStatus = null;
146
 
146
 
147
    /**
147
    /**
148
     * Returns $_batterCharge.
148
     * Returns $_batterCharge.
149
     *
149
     *
150
     * @see UPSDevice::$_batterCharge
150
     * @see UPSDevice::$_batterCharge
151
     *
151
     *
152
     * @return integer
152
     * @return float
153
     */
153
     */
154
    public function getBatterCharge()
154
    public function getBatterCharge()
155
    {
155
    {
156
        return $this->_batterCharge;
156
        return $this->_batterCharge;
157
    }
157
    }
158
 
158
 
159
    /**
159
    /**
160
     * Sets $_batterCharge.
160
     * Sets $_batterCharge.
161
     *
161
     *
162
     * @param int $batterCharge battery charge
162
     * @param float $batterCharge battery charge
163
     *
163
     *
164
     * @see UPSDevice::$_batterCharge
164
     * @see UPSDevice::$_batterCharge
165
     *
165
     *
166
     * @return void
166
     * @return void
167
     */
167
     */
168
    public function setBatterCharge($batterCharge)
168
    public function setBatterCharge($batterCharge)
169
    {
169
    {
170
        $this->_batterCharge = $batterCharge;
170
        $this->_batterCharge = $batterCharge;
171
    }
171
    }
172
 
172
 
173
    /**
173
    /**
174
     * Returns $_batteryDate.
174
     * Returns $_batteryDate.
175
     *
175
     *
176
     * @see UPSDevice::$_batteryDate
176
     * @see UPSDevice::$_batteryDate
177
     *
177
     *
178
     * @return String
178
     * @return String
179
     */
179
     */
180
    public function getBatteryDate()
180
    public function getBatteryDate()
181
    {
181
    {
182
        return $this->_batteryDate;
182
        return $this->_batteryDate;
183
    }
183
    }
184
 
184
 
185
    /**
185
    /**
186
     * Sets $_batteryDate.
186
     * Sets $_batteryDate.
187
     *
187
     *
188
     * @param object $batteryDate battery date
188
     * @param object $batteryDate battery date
189
     *
189
     *
190
     * @see UPSDevice::$_batteryDate
190
     * @see UPSDevice::$_batteryDate
191
     *
191
     *
192
     * @return void
192
     * @return void
193
     */
193
     */
194
    public function setBatteryDate($batteryDate)
194
    public function setBatteryDate($batteryDate)
195
    {
195
    {
196
        $this->_batteryDate = $batteryDate;
196
        $this->_batteryDate = $batteryDate;
197
    }
197
    }
198
 
198
 
199
    /**
199
    /**
200
     * Returns $_batteryVoltage.
200
     * Returns $_batteryVoltage.
201
     *
201
     *
202
     * @see UPSDevice::$_batteryVoltage
202
     * @see UPSDevice::$_batteryVoltage
203
     *
203
     *
204
     * @return int
204
     * @return float
205
     */
205
     */
206
    public function getBatteryVoltage()
206
    public function getBatteryVoltage()
207
    {
207
    {
208
        return $this->_batteryVoltage;
208
        return $this->_batteryVoltage;
209
    }
209
    }
210
 
210
 
211
    /**
211
    /**
212
     * Sets $_batteryVoltage.
212
     * Sets $_batteryVoltage.
213
     *
213
     *
214
     * @param int $batteryVoltage battery volt
214
     * @param float $batteryVoltage battery volt
215
     *
215
     *
216
     * @see UPSDevice::$_batteryVoltage
216
     * @see UPSDevice::$_batteryVoltage
217
     *
217
     *
218
     * @return void
218
     * @return void
219
     */
219
     */
220
    public function setBatteryVoltage($batteryVoltage)
220
    public function setBatteryVoltage($batteryVoltage)
221
    {
221
    {
222
        $this->_batteryVoltage = $batteryVoltage;
222
        $this->_batteryVoltage = $batteryVoltage;
223
    }
223
    }
224
 
224
 
225
    /**
225
    /**
226
     * Returns $_lastOutage.
226
     * Returns $_lastOutage.
227
     *
227
     *
228
     * @see UPSDevice::$_lastOutage
228
     * @see UPSDevice::$_lastOutage
229
     *
229
     *
230
     * @return String
230
     * @return String
231
     */
231
     */
232
    public function getLastOutage()
232
    public function getLastOutage()
233
    {
233
    {
234
        return $this->_lastOutage;
234
        return $this->_lastOutage;
235
    }
235
    }
236
 
236
 
237
    /**
237
    /**
238
     * Sets $_lastOutage.
238
     * Sets $_lastOutage.
239
     *
239
     *
240
     * @param String $lastOutage last Outage
240
     * @param String $lastOutage last Outage
241
     *
241
     *
242
     * @see UPSDevice::$lastOutage
242
     * @see UPSDevice::$lastOutage
243
     *
243
     *
244
     * @return void
244
     * @return void
245
     */
245
     */
246
    public function setLastOutage($lastOutage)
246
    public function setLastOutage($lastOutage)
247
    {
247
    {
248
        $this->_lastOutage = $lastOutage;
248
        $this->_lastOutage = $lastOutage;
249
    }
249
    }
250
 
250
 
251
    /**
251
    /**
252
     * Returns $_lastOutageFinish.
252
     * Returns $_lastOutageFinish.
253
     *
253
     *
254
     * @see UPSDevice::$_lastOutageFinish
254
     * @see UPSDevice::$_lastOutageFinish
255
     *
255
     *
256
     * @return String
256
     * @return String
257
     */
257
     */
258
    public function getLastOutageFinish()
258
    public function getLastOutageFinish()
259
    {
259
    {
260
        return $this->_lastOutageFinish;
260
        return $this->_lastOutageFinish;
261
    }
261
    }
262
 
262
 
263
    /**
263
    /**
264
     * Sets $_lastOutageFinish.
264
     * Sets $_lastOutageFinish.
265
     *
265
     *
266
     * @param String $lastOutageFinish last outage finish
266
     * @param String $lastOutageFinish last outage finish
267
     *
267
     *
268
     * @see UPSDevice::$_lastOutageFinish
268
     * @see UPSDevice::$_lastOutageFinish
269
     *
269
     *
270
     * @return void
270
     * @return void
271
     */
271
     */
272
    public function setLastOutageFinish($lastOutageFinish)
272
    public function setLastOutageFinish($lastOutageFinish)
273
    {
273
    {
274
        $this->_lastOutageFinish = $lastOutageFinish;
274
        $this->_lastOutageFinish = $lastOutageFinish;
275
    }
275
    }
276
 
276
 
277
    /**
277
    /**
278
     * Returns $_lineVoltage.
278
     * Returns $_lineVoltage.
279
     *
279
     *
280
     * @see UPSDevice::$_lineVoltage
280
     * @see UPSDevice::$_lineVoltage
281
     *
281
     *
282
     * @return int
282
     * @return float
283
     */
283
     */
284
    public function getLineVoltage()
284
    public function getLineVoltage()
285
    {
285
    {
286
        return $this->_lineVoltage;
286
        return $this->_lineVoltage;
287
    }
287
    }
288
 
288
 
289
    /**
289
    /**
290
     * Sets $_lineVoltage.
290
     * Sets $_lineVoltage.
291
     *
291
     *
292
     * @param int $lineVoltage line voltage
292
     * @param float $lineVoltage line voltage
293
     *
293
     *
294
     * @see UPSDevice::$_lineVoltage
294
     * @see UPSDevice::$_lineVoltage
295
     *
295
     *
296
     * @return void
296
     * @return void
297
     */
297
     */
298
    public function setLineVoltage($lineVoltage)
298
    public function setLineVoltage($lineVoltage)
299
    {
299
    {
300
        $this->_lineVoltage = $lineVoltage;
300
        $this->_lineVoltage = $lineVoltage;
301
    }
301
    }
302
 
302
 
303
    /**
303
    /**
304
     * Returns $_lineFrequency.
304
     * Returns $_lineFrequency.
305
     *
305
     *
306
     * @see UPSDevice::$_lineFrequency
306
     * @see UPSDevice::$_lineFrequency
307
     *
307
     *
308
     * @return int
308
     * @return int
309
     */
309
     */
310
    public function getLineFrequency()
310
    public function getLineFrequency()
311
    {
311
    {
312
        return $this->_lineFrequency;
312
        return $this->_lineFrequency;
313
    }
313
    }
314
 
314
 
315
    /**
315
    /**
316
     * Sets $_lineFrequency.
316
     * Sets $_lineFrequency.
317
     *
317
     *
318
     * @param int $lineFrequency line frequency
318
     * @param int $lineFrequency line frequency
319
     *
319
     *
320
     * @see UPSDevice::$_lineFrequency
320
     * @see UPSDevice::$_lineFrequency
321
     *
321
     *
322
     * @return void
322
     * @return void
323
     */
323
     */
324
    public function setLineFrequency($lineFrequency)
324
    public function setLineFrequency($lineFrequency)
325
    {
325
    {
326
        $this->_lineFrequency = $lineFrequency;
326
        $this->_lineFrequency = $lineFrequency;
327
    }
327
    }
328
 
328
 
329
    /**
329
    /**
330
     * Returns $_load.
330
     * Returns $_load.
331
     *
331
     *
332
     * @see UPSDevice::$_load
332
     * @see UPSDevice::$_load
333
     *
333
     *
334
     * @return int
334
     * @return float
335
     */
335
     */
336
    public function getLoad()
336
    public function getLoad()
337
    {
337
    {
338
        return $this->_load;
338
        return $this->_load;
339
    }
339
    }
340
 
340
 
341
    /**
341
    /**
342
     * Sets $_load.
342
     * Sets $_load.
343
     *
343
     *
344
     * @param int $load current load
344
     * @param float $load current load
345
     *
345
     *
346
     * @see UPSDevice::$_load
346
     * @see UPSDevice::$_load
347
     *
347
     *
348
     * @return void
348
     * @return void
349
     */
349
     */
350
    public function setLoad($load)
350
    public function setLoad($load)
351
    {
351
    {
352
        $this->_load = $load;
352
        $this->_load = $load;
353
    }
353
    }
354
 
354
 
355
    /**
355
    /**
356
     * Returns $_mode.
356
     * Returns $_mode.
357
     *
357
     *
358
     * @see UPSDevice::$_mode
358
     * @see UPSDevice::$_mode
359
     *
359
     *
360
     * @return String
360
     * @return String
361
     */
361
     */
362
    public function getMode()
362
    public function getMode()
363
    {
363
    {
364
        return $this->_mode;
364
        return $this->_mode;
365
    }
365
    }
366
 
366
 
367
    /**
367
    /**
368
     * Sets $_mode.
368
     * Sets $_mode.
369
     *
369
     *
370
     * @param String $mode mode
370
     * @param String $mode mode
371
     *
371
     *
372
     * @see UPSDevice::$_mode
372
     * @see UPSDevice::$_mode
373
     *
373
     *
374
     * @return void
374
     * @return void
375
     */
375
     */
376
    public function setMode($mode)
376
    public function setMode($mode)
377
    {
377
    {
378
        $this->_mode = $mode;
378
        $this->_mode = $mode;
379
    }
379
    }
380
 
380
 
381
    /**
381
    /**
382
     * Returns $_model.
382
     * Returns $_model.
383
     *
383
     *
384
     * @see UPSDevice::$_model
384
     * @see UPSDevice::$_model
385
     *
385
     *
386
     * @return String
386
     * @return String
387
     */
387
     */
388
    public function getModel()
388
    public function getModel()
389
    {
389
    {
390
        return $this->_model;
390
        return $this->_model;
391
    }
391
    }
392
 
392
 
393
    /**
393
    /**
394
     * Sets $_model.
394
     * Sets $_model.
395
     *
395
     *
396
     * @param String $model model
396
     * @param String $model model
397
     *
397
     *
398
     * @see UPSDevice::$_model
398
     * @see UPSDevice::$_model
399
     *
399
     *
400
     * @return void
400
     * @return void
401
     */
401
     */
402
    public function setModel($model)
402
    public function setModel($model)
403
    {
403
    {
404
        $this->_model = $model;
404
        $this->_model = $model;
405
    }
405
    }
406
 
406
 
407
    /**
407
    /**
408
     * Returns $_name.
408
     * Returns $_name.
409
     *
409
     *
410
     * @see UPSDevice::$_name
410
     * @see UPSDevice::$_name
411
     *
411
     *
412
     * @return String
412
     * @return String
413
     */
413
     */
414
    public function getName()
414
    public function getName()
415
    {
415
    {
416
        return $this->_name;
416
        return $this->_name;
417
    }
417
    }
418
 
418
 
419
    /**
419
    /**
420
     * Sets $_name.
420
     * Sets $_name.
421
     *
421
     *
422
     * @param String $name name
422
     * @param String $name name
423
     *
423
     *
424
     * @see UPSDevice::$_name
424
     * @see UPSDevice::$_name
425
     *
425
     *
426
     * @return void
426
     * @return void
427
     */
427
     */
428
    public function setName($name)
428
    public function setName($name)
429
    {
429
    {
430
        $this->_name = $name;
430
        $this->_name = $name;
431
    }
431
    }
432
 
432
 
433
    /**
433
    /**
434
     * Returns $_outages.
434
     * Returns $_outages.
435
     *
435
     *
436
     * @see UPSDevice::$_outages
436
     * @see UPSDevice::$_outages
437
     *
437
     *
438
     * @return int
438
     * @return int
439
     */
439
     */
440
    public function getOutages()
440
    public function getOutages()
441
    {
441
    {
442
        return $this->_outages;
442
        return $this->_outages;
443
    }
443
    }
444
 
444
 
445
    /**
445
    /**
446
     * Sets $_outages.
446
     * Sets $_outages.
447
     *
447
     *
448
     * @param int $outages outages count
448
     * @param int $outages outages count
449
     *
449
     *
450
     * @see UPSDevice::$_outages
450
     * @see UPSDevice::$_outages
451
     *
451
     *
452
     * @return void
452
     * @return void
453
     */
453
     */
454
    public function setOutages($outages)
454
    public function setOutages($outages)
455
    {
455
    {
456
        $this->_outages = $outages;
456
        $this->_outages = $outages;
457
    }
457
    }
458
 
458
 
459
    /**
459
    /**
460
     * Returns $_startTime.
460
     * Returns $_startTime.
461
     *
461
     *
462
     * @see UPSDevice::$_startTime
462
     * @see UPSDevice::$_startTime
463
     *
463
     *
464
     * @return String
464
     * @return String
465
     */
465
     */
466
    public function getStartTime()
466
    public function getStartTime()
467
    {
467
    {
468
        return $this->_startTime;
468
        return $this->_startTime;
469
    }
469
    }
470
 
470
 
471
    /**
471
    /**
472
     * Sets $_startTime.
472
     * Sets $_startTime.
473
     *
473
     *
474
     * @param String $startTime startTime
474
     * @param String $startTime startTime
475
     *
475
     *
476
     * @see UPSDevice::$_startTime
476
     * @see UPSDevice::$_startTime
477
     *
477
     *
478
     * @return void
478
     * @return void
479
     */
479
     */
480
    public function setStartTime($startTime)
480
    public function setStartTime($startTime)
481
    {
481
    {
482
        $this->_startTime = $startTime;
482
        $this->_startTime = $startTime;
483
    }
483
    }
484
 
484
 
485
    /**
485
    /**
486
     * Returns $_status.
486
     * Returns $_status.
487
     *
487
     *
488
     * @see UPSDevice::$_status
488
     * @see UPSDevice::$_status
489
     *
489
     *
490
     * @return String
490
     * @return String
491
     */
491
     */
492
    public function getStatus()
492
    public function getStatus()
493
    {
493
    {
494
        return $this->_status;
494
        return $this->_status;
495
    }
495
    }
496
 
496
 
497
    /**
497
    /**
498
     * Sets $_status.
498
     * Sets $_status.
499
     *
499
     *
500
     * @param String $status status
500
     * @param String $status status
501
     *
501
     *
502
     * @see UPSDevice::$_status
502
     * @see UPSDevice::$_status
503
     *
503
     *
504
     * @return void
504
     * @return void
505
     */
505
     */
506
    public function setStatus($status)
506
    public function setStatus($status)
507
    {
507
    {
508
        $this->_status = $status;
508
        $this->_status = $status;
509
    }
509
    }
510
 
510
 
511
    /**
511
    /**
512
     * Returns $_temperatur.
512
     * Returns $_temperatur.
513
     *
513
     *
514
     * @see UPSDevice::$_temperatur
514
     * @see UPSDevice::$_temperatur
515
     *
515
     *
516
     * @return int
516
     * @return string
517
     */
517
     */
518
    public function getTemperatur()
518
    public function getTemperatur()
519
    {
519
    {
520
        return $this->_temperatur;
520
        return $this->_temperatur;
521
    }
521
    }
522
 
522
 
523
    /**
523
    /**
524
     * Sets $_temperatur.
524
     * Sets $_temperatur.
525
     *
525
     *
526
     * @param int $temperatur temperature
526
     * @param string $temperatur temperature
527
     *
527
     *
528
     * @see UPSDevice::$_temperatur
528
     * @see UPSDevice::$_temperatur
529
     *
529
     *
530
     * @return void
530
     * @return void
531
     */
531
     */
532
    public function setTemperatur($temperatur)
532
    public function setTemperatur($temperatur)
533
    {
533
    {
534
        $this->_temperatur = $temperatur;
534
        $this->_temperatur = $temperatur;
535
    }
535
    }
536
 
536
 
537
    /**
537
    /**
538
     * Returns $_timeLeft.
538
     * Returns $_timeLeft.
539
     *
539
     *
540
     * @see UPSDevice::$_timeLeft
540
     * @see UPSDevice::$_timeLeft
541
     *
541
     *
542
     * @return String
542
     * @return String
543
     */
543
     */
544
    public function getTimeLeft()
544
    public function getTimeLeft()
545
    {
545
    {
546
        return $this->_timeLeft;
546
        return $this->_timeLeft;
547
    }
547
    }
548
 
548
 
549
    /**
549
    /**
550
     * Sets $_timeLeft.
550
     * Sets $_timeLeft.
551
     *
551
     *
552
     * @param String $timeLeft time left
552
     * @param String $timeLeft time left
553
     *
553
     *
554
     * @see UPSDevice::$_timeLeft
554
     * @see UPSDevice::$_timeLeft
555
     *
555
     *
556
     * @return void
556
     * @return void
557
     */
557
     */
558
    public function setTimeLeft($timeLeft)
558
    public function setTimeLeft($timeLeft)
559
    {
559
    {
560
        $this->_timeLeft = $timeLeft;
560
        $this->_timeLeft = $timeLeft;
561
    }
561
    }
562
 
562
 
563
    /**
563
    /**
564
     * Returns $_beeperStatus.
564
     * Returns $_beeperStatus.
565
     *
565
     *
566
     * @see UPSDevice::$_beeperStatus
566
     * @see UPSDevice::$_beeperStatus
567
     *
567
     *
568
     * @return String
568
     * @return String
569
     */
569
     */
570
    public function getBeeperStatus()
570
    public function getBeeperStatus()
571
    {
571
    {
572
        return $this->_beeperStatus;
572
        return $this->_beeperStatus;
573
    }
573
    }
574
 
574
 
575
    /**
575
    /**
576
     * Sets $_beeperStatus.
576
     * Sets $_beeperStatus.
577
     *
577
     *
578
     * @param String $beeperStatus beeper status
578
     * @param String $beeperStatus beeper status
579
     *
579
     *
580
     * @see UPSDevice::$_beeperStatus
580
     * @see UPSDevice::$_beeperStatus
581
     *
581
     *
582
     * @return void
582
     * @return void
583
     */
583
     */
584
    public function setBeeperStatus($beeperStatus)
584
    public function setBeeperStatus($beeperStatus)
585
    {
585
    {
586
        $this->_beeperStatus = $beeperStatus;
586
        $this->_beeperStatus = $beeperStatus;
587
    }
587
    }
588
}
588
}
589
 
589