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

StubValueComparer::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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