SystemBios::query()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace PhpWinTools\WmiScripting\Models;
4
5
use PhpWinTools\WmiScripting\Cim\CimSystemComponent;
6
use PhpWinTools\WmiScripting\Query\SystemBiosBuilder;
7
8
/**
9
 * @link https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-systembios
10
 */
11
class SystemBios extends CimSystemComponent
12
{
13
    protected $uuid = '{8502C4EE-5FBB-11D2-AAC1-006008C78BC7}';
14
15
    protected $attribute_name_replacements = [
16
        'partComponent'  => 'Win32_BIOS',
17
        'groupComponent' => 'Win32_ComputerSystem',
18
    ];
19
20
    public static function query($connection = null)
21
    {
22
        return new SystemBiosBuilder($self = new static(), $self->getConnection($connection));
23
    }
24
}
25