Unknown   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 45
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLocation() 0 4 1
A getLine() 0 4 1
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