Passed
Push — win32modeltests ( 938292...1d9554 )
by Joe
03:05
created

CimOperatingSystem::getOSTypeAttribute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace PhpWinTools\WmiScripting\Cim;
4
5
use PhpWinTools\WmiScripting\MappingStrings\OSType;
6
7
/**
8
 * @link https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/cim-operatingsystem
9
 */
10
class CimOperatingSystem extends CimLogicalElement
11
{
12
    protected $uuid = '{8502C565-5FBB-11D2-AAC1-006008C78BC7}';
13
14
    protected $creationClassName;
15
16
    protected $cSCreationClassName;
17
18
    protected $cSName;
19
20
    protected $currentTimeZone;
21
22
    protected $distributed;
23
24
    protected $freePhysicalMemory;
25
26
    protected $freeSpaceInPagingFiles;
27
28
    protected $freeVirtualMemory;
29
30
    protected $lastBootUpTime;
31
32
    protected $localDateTime;
33
34
    protected $maxNumberOfProcesses;
35
36
    protected $maxProcessMemorySize;
37
38
    protected $numberOfLicensedUsers;
39
40
    protected $numberOfProcesses;
41
42
    protected $numberOfUsers;
43
44
    protected $oSType;
45
46
    protected $otherTypeDescription;
47
48
    protected $sizeStoredInPagingFiles;
49
50
    protected $totalSwapSpaceSize;
51
52
    protected $totalVirtualMemorySize;
53
54
    protected $totalVisibleMemorySize;
55
56
    protected $version;
57
58
    public function getOSTypeAttribute($value)
59
    {
60
        return $this->mapConstant(OSType::class, $value);
61
    }
62
63
    public function reboot()
64
    {
65
        //
66
    }
67
68
    public function shutdown()
69
    {
70
        //
71
    }
72
}
73