Unknown::getLocation()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace PHPSemVerChecker\Operation;
4
5
class Unknown extends Operation
6
{
7
	/**
8
	 * @var string
9
	 */
10
	protected $code = 'V000';
11
	/**
12
	 * @var string
13
	 */
14
	protected $reason = 'Reason unknown.';
15
	/**
16
	 * @var string
17
	 */
18
	protected $fileBefore;
19
	/**
20
	 * @var string
21
	 */
22
	protected $fileAfter;
23
24
	/**
25
	 * @param string $fileBefore
26
	 * @param string $fileAfter
27
	 */
28
	public function __construct($fileBefore = null, $fileAfter = null)
29
	{
30
		$this->fileBefore = $fileBefore;
31
		$this->fileAfter = $fileAfter;
32
	}
33
34
	/**
35
	 * @return string
36
	 */
37
	public function getLocation()
38
	{
39
		return $this->fileBefore . ' ' . $this->fileAfter;
40
	}
41
42
	/**
43
	 * @return int
44
	 */
45
	public function getLine()
46
	{
47
		return 0;
48
	}
49
}
50