Skip to content

Commit f8dd8cd

Browse files
author
tzhelyazkova
committed
Fix Snak interface
The Snak interface used to implement Hashable and Comparable interfaces which had getHash and equals functions. We need those for avoid a bunch of errors in Wikibase.
1 parent f02f536 commit f8dd8cd

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/Snak/Snak.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,16 @@ interface Snak extends Serializable, PropertyIdProvider {
2525
*/
2626
public function getType();
2727

28+
/**
29+
*
30+
* @return string
31+
*/
32+
public function getHash();
33+
34+
/**
35+
* @param mixed $value
36+
* @return boolean
37+
*/
38+
public function equals( $value );
39+
2840
}

0 commit comments

Comments
 (0)