SWbemQualifier::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace PhpWinTools\WmiScripting\Support\ApiObjects;
4
5
use PhpWinTools\Support\COM\VariantWrapper;
6
use PhpWinTools\WmiScripting\Support\ApiObjects\VariantInterfaces\QualifierVariant;
7
8
class SWbemQualifier extends AbstractWbemObject
9
{
10
    protected $name;
11
12
    protected $value;
13
14
    /** @var VariantWrapper|QualifierVariant */
15
    protected $object;
16
17 2
    public function __construct(VariantWrapper $variant)
18
    {
19 2
        parent::__construct($variant);
20
21 2
        $this->name = (string) $this->object->Name;
0 ignored issues
show
Bug Best Practice introduced by
The property Name does not exist on PhpWinTools\Support\COM\VariantWrapper. Since you implemented __get, consider adding a @property annotation.
Loading history...
22 2
        $this->value = $this->object->Value;
0 ignored issues
show
Bug Best Practice introduced by
The property Value does not exist on PhpWinTools\Support\COM\VariantWrapper. Since you implemented __get, consider adding a @property annotation.
Loading history...
23 2
    }
24
}
25