UPSInfo   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 37
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUpsDevices() 0 4 1
A setUpsDevices() 0 4 1
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.UPSInfo.inc.php 329 2009-09-07 11:21:44Z 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 UPSInfo
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 upsdivices
30
     *
31
     * @see UPSDevice
32
     *
33
     * @var Array
34
     */
35
    private $_upsDevices = array();
36
37
    /**
38
     * Returns $_upsDevices.
39
     *
40
     * @see UPSInfo::$_upsDevices
41
     *
42
     * @return Array
43
     */
44
    public function getUpsDevices()
45
    {
46
        return $this->_upsDevices;
47
    }
48
49
    /**
50
     * Sets $_upsDevices.
51
     *
52
     * @param UPSDevice $upsDevices upsdevice
53
     *
54
     * @see UPSInfo::$_upsDevices
55
     *
56
     * @return Void
57
     */
58
    public function setUpsDevices($upsDevices)
59
    {
60
        array_push($this->_upsDevices, $upsDevices);
61
    }
62
}
63