ComTraceSubject   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Test Coverage

Coverage 64.71%

Importance

Changes 0
Metric Value
wmc 6
eloc 16
dl 0
loc 60
ccs 11
cts 17
cp 0.6471
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCalledFromClass() 0 3 1
A getFunction() 0 3 1
A getFile() 0 3 1
A __construct() 0 7 1
A getClass() 0 3 1
A getArguments() 0 3 1
1
<?php
2
3
namespace PhpWinTools\WmiScripting\Testing\CallStacks;
4
5
class ComTraceSubject
6
{
7
    private $file;
8
9
    private $class;
10
11
    private $function;
12
13
    private $arguments;
14
15
    /** @var null */
16
    private $called_from_class;
17
18 2
    public function __construct($file, $class, $function, $arguments, $called_from_class = null)
19
    {
20 2
        $this->file = $file;
21 2
        $this->class = $class;
22 2
        $this->function = $function;
23 2
        $this->arguments = $arguments;
24 2
        $this->called_from_class = $called_from_class;
25 2
    }
26
27
    /**
28
     * @return mixed
29
     */
30
    public function getFile()
31
    {
32
        return $this->file;
33
    }
34
35
    /**
36
     * @return mixed
37
     */
38 2
    public function getClass()
39
    {
40 2
        return $this->class;
41
    }
42
43
    /**
44
     * @return mixed
45
     */
46
    public function getFunction()
47
    {
48
        return $this->function;
49
    }
50
51
    /**
52
     * @return mixed
53
     */
54 2
    public function getArguments()
55
    {
56 2
        return $this->arguments;
57
    }
58
59
    /**
60
     * @return null
61
     */
62
    public function getCalledFromClass()
63
    {
64
        return $this->called_from_class;
65
    }
66
}
67