Passed
Push — master ( 78cea0...e6e26f )
by Joe
02:51
created

Processor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 30
dl 0
loc 61
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getArchitectureAttribute() 0 3 1
1
<?php
2
3
namespace PhpWinTools\WmiScripting\Models;
4
5
use PhpWinTools\WmiScripting\Cim\CimProcessor;
6
use PhpWinTools\WmiScripting\MappingStrings\ProcessorArchitecture;
7
8
/**
9
 * @link https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-processor
10
 */
11
class Processor extends CimProcessor
12
{
13
    protected $uuid = '{8502C4BB-5FBB-11D2-AAC1-006008C78BC7}';
14
15
    protected $architecture;
16
17
    protected $assetTag;
18
19
    protected $characteristics;
20
21
    protected $cpuStatus;
22
23
    protected $currentVoltage;
24
25
    protected $extClock;
26
27
    protected $l2CacheSize;
28
29
    protected $l2CacheSpeed;
30
31
    protected $l3CacheSize;
32
33
    protected $l3CacheSpeed;
34
35
    protected $level;
36
37
    protected $manufacturer;
38
39
    protected $numberOfCores;
40
41
    protected $numberOfEnabledCore;
42
43
    protected $numberOfLogicalProcessors;
44
45
    protected $partNumber;
46
47
    protected $processorId;
48
49
    protected $processorType;
50
51
    protected $revision;
52
53
    protected $secondLevelAddressTranslationExtensions;
54
55
    protected $serialNumber;
56
57
    protected $socketDesignation;
58
59
    protected $threadCount;
60
61
    protected $version;
62
63
    protected $virtualizationFirmwareEnabled;
64
65
    protected $vMMonitorModeExtensions;
66
67
    protected $voltageCaps;
68
69
    public function getArchitectureAttribute($value)
70
    {
71
        return $this->mapConstant(ProcessorArchitecture::class, $value);
72
    }
73
}
74