Passed
Push — master ( 419528...d82956 )
by Jeroen De
32s
created

StubValueComparer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A valuesAreEqual() 0 4 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace Diff\Tests\Fixtures;
6
7
use Diff\Comparer\ValueComparer;
8
9
/**
10
 * @license GPL-2.0+
11
 * @author Jeroen De Dauw < [email protected] >
12
 */
13
class StubValueComparer implements ValueComparer {
14
15
	private $returnValue;
16
17
	public function __construct( bool $returnValue ) {
18
		$this->returnValue = $returnValue;
19
	}
20
21
	// @codingStandardsIgnoreStart
22
	public function valuesAreEqual( $firstValue, $secondValue ): bool {
23
		// @codingStandardsIgnoreEnd
24
		return $this->returnValue;
25
	}
26
27
}
28