Wikibase
MediaWiki Wikibase extension
|
Immutable value object for a statement id. More...
Public Member Functions | |
__construct (EntityId $entityId, $guid) | |
getEntityId () | |
getGuidPart () | |
getSerialization () | |
equals ( $target) | |
__toString () | |
Public Attributes | |
const | SEPARATOR = '$' |
The separator for the prefix and suffix of the GUID. | |
Private Attributes | |
$entityId | |
$guidPart | |
$serialization | |
Immutable value object for a statement id.
A statement id consists of the entity id serialization of the entity it belongs to (e.g. "Q1") and a randomly generated global unique identifier (GUID), separated by a dollar sign.
Wikibase\DataModel\Statement\StatementGuid::__construct | ( | EntityId | $entityId, |
$guid ) |
EntityId | $entityId | |
string | $guid |
InvalidArgumentException |
Wikibase\DataModel\Statement\StatementGuid::__toString | ( | ) |
Wikibase\DataModel\Statement\StatementGuid::equals | ( | $target | ) |
mixed | $target |
Wikibase\DataModel\Statement\StatementGuid::getEntityId | ( | ) |
Wikibase\DataModel\Statement\StatementGuid::getGuidPart | ( | ) |
Wikibase\DataModel\Statement\StatementGuid::getSerialization | ( | ) |
|
private |
|
private |
|
private |
const Wikibase\DataModel\Statement\StatementGuid::SEPARATOR = '$' |
The separator for the prefix and suffix of the GUID.