ComVariantWrapperFake   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 28.57%

Importance

Changes 0
Metric Value
wmc 3
eloc 4
dl 0
loc 18
ccs 2
cts 7
cp 0.2857
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A comToString() 0 3 1
A getComObject() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace PhpWinTools\Support\COM\Testing;
4
5
use PhpWinTools\Support\COM\ComVariantWrapper;
6
use PhpWinTools\WmiScripting\Configuration\Config;
7
8
class ComVariantWrapperFake extends ComVariantWrapper
9
{
10
    public function __construct(COMObjectFake $comObject, Config $config = null)
11
    {
12
        parent::__construct($comObject, $config);
13
    }
14
15 2
    public static function comToString(ComVariantWrapper $com)
16
    {
17 2
        return '';
18
    }
19
20
    /**
21
     * @return COMObjectFake
22
     */
23
    public function getComObject()
24
    {
25
        return parent::getComObject();
0 ignored issues
show
Bug Best Practice introduced by
The expression return parent::getComObject() returns the type COM|VARIANT which is incompatible with the documented return type PhpWinTools\Support\COM\Testing\COMObjectFake.
Loading history...
26
    }
27
}
28