Wikibase
MediaWiki Wikibase extension
|
Serializer and Deserializer for Statement Ranks. More...
Public Member Functions | |
deserialize ( $serializedRank) | |
Deserializes the rank and returns an element from the Statement::RANK_ enum. More... | |
serialize ( $rank) | |
Serializes the rank. More... | |
Static Public Member Functions | |
static | getRanks () |
Returns the available ranks in serialized form. More... | |
Static Private Attributes | |
static | $rankMap |
Serializer and Deserializer for Statement Ranks.
Wikibase\Repo\StatementRankSerializer::deserialize | ( | $serializedRank | ) |
Deserializes the rank and returns an element from the Statement::RANK_ enum.
string | $serializedRank |
DeserializationException |
|
static |
Returns the available ranks in serialized form.
Wikibase\Repo\StatementRankSerializer::serialize | ( | $rank | ) |
Serializes the rank.
int | $rank |
SerializationException |
|
staticprivate |