Passed
Push — revert-interface-change ( ccb51e...f9a91e )
by Jakob
06:03 queued 01:30
created

MutableHashable::getHash()   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
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Wikibase\DataModel\Fixtures;
4
5
use Hashable;
6
7
/**
8
 * @license GPL-2.0+
9
 * @author Jeroen De Dauw < [email protected] >
10
 */
11
class MutableHashable implements Hashable {
12
13
	public $text = '';
14
15
	public function getHash() {
16
		return sha1( __CLASS__ . $this->text );
17
	}
18
19
}
20