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

MutableHashable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHash() 0 3 1
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