CimLogicalDevice   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
eloc 19
dl 0
loc 49
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setPowerState() 0 2 1
A reset() 0 2 1
A getDeviceId() 0 3 1
1
<?php
2
3
namespace PhpWinTools\WmiScripting\Cim;
4
5
/**
6
 * @link https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/cim-logicaldevice
7
 */
8
class CimLogicalDevice extends CimLogicalElement
9
{
10
    protected $uuid = '{8502C529-5FBB-11D2-AAC1-006008C78BC7}';
11
12
    protected $availability;
13
14
    protected $configManagerErrorCode;
15
16
    protected $configManagerUserConfig;
17
18
    protected $creationClassName;
19
20
    protected $deviceID;
21
22
    protected $errorCleared;
23
24
    protected $errorDescription;
25
26
    protected $lastErrorCode;
27
28
    protected $pNPDeviceID;
29
30
    protected $powerManagementCapabilities = [];
31
32
    protected $powerManagementSupported;
33
34
    protected $statusInfo;
35
36
    protected $systemCreationClassName;
37
38
    protected $systemName;
39
40
    protected $attribute_casting = [
41
        'systemName' => 'string',
42
    ];
43
44
    public function reset()
45
    {
46
        //
47
    }
48
49
    public function setPowerState()
50
    {
51
        //
52
    }
53
54
    public function getDeviceId()
55
    {
56
        return $this->getAttribute('deviceID');
57
    }
58
}
59