ComTraceSubject::getFile()   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 0
crap 2
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