CimSoftwareElement   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 16
dl 0
loc 33
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace PhpWinTools\WmiScripting\Cim;
4
5
use PhpWinTools\WmiScripting\MappingStrings\SoftwareElementState;
6
7
/**
8
 * @link https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/cim-softwareelement
9
 */
10
class CimSoftwareElement extends CimLogicalElement
11
{
12
    protected $uuid = '{8502C561-5FBB-11D2-AAC1-006008C78BC7}';
13
14
    protected $buildNumber;
15
16
    protected $codeSet;
17
18
    protected $identificationCode;
19
20
    protected $languageEdition;
21
22
    protected $manufacturer;
23
24
    protected $otherTargetOS;
25
26
    protected $serialNumber;
27
28
    protected $softwareElementID;
29
30
    protected $softwareElementState;
31
32
    protected $targetOperatingSystem;
33
34
    protected $version;
35
36
    public function __construct(array $attributes = [])
37
    {
38
        $this->attribute_casting['softwareElementState'] = function ($value) {
39
            return SoftwareElementState::string($value);
40
        };
41
42
        parent::__construct($attributes);
43
    }
44
}
45