CallerPosition::getFile()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace DicDoc;
3
4
/**
5
 * Class CallerPosition
6
 *
7
 * @package DicDoc
8
 */
9
class CallerPosition
10
{
11
12
    /**
13
     * @var
14
     */
15
    public $file;
16
    /**
17
     * @var
18
     */
19
    public $line;
20
   
21
    /**
22
     * CallerPosition constructor.
23
     *
24
     * @param $file
25
     * @param $line
26
     */
27
    public function __construct($file, $line)
28
    {
29
        $this->file = $file;
30
        $this->line = $line;
31
    }
32
33
    /**
34
     * @return mixed
35
     */
36
    public function getFile()
37
    {
38
        return $this->file;
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44
    public function getLine()
45
    {
46
        return $this->line;
47
    }
48
49
}