Completed
Push — master ( 0e338e...cdc67b )
by Alessandro
09:41 queued 04:45
created

TraceStep::getLine()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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