Skip to content

Commit 860d753

Browse files
committed
Merge pull request #591 from wmde/guidDocs
Add class level doc to StatementGuid
2 parents e473179 + cca4c54 commit 860d753

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/Statement/StatementGuid.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
use Wikibase\DataModel\Entity\EntityId;
88

99
/**
10+
* Immutable value object for a statement id. A statement id consists of the entity id serialization
11+
* of the entity it belongs to (e.g. "Q1") and a randomly generated global unique identifier (GUID),
12+
* separated by a dollar sign.
13+
*
1014
* @since 3.0
1115
*
1216
* @licence GNU GPL v2+
@@ -19,7 +23,14 @@ class StatementGuid implements Comparable {
1923
*/
2024
const SEPARATOR = '$';
2125

26+
/**
27+
* @var EntityId
28+
*/
2229
private $entityId;
30+
31+
/**
32+
* @var string
33+
*/
2334
private $serialization;
2435

2536
/**
@@ -65,7 +76,7 @@ public function equals( $target ) {
6576
}
6677

6778
return $target instanceof self
68-
&& $target->serialization === $this->serialization;
79+
&& $target->serialization === $this->serialization;
6980
}
7081

7182
public function __toString() {

0 commit comments

Comments
 (0)