An entity ID of a sub-entity of a Lexeme
, which contains the LexemeId
of the parent lexeme and exposes it via getLexemeId()
.
More...
|
static | formatSerialization (EntityId $containerEntityId, string $idPrefix, int $id) |
| Format a serialization of a sub entity id, e.g.
|
|
An entity ID of a sub-entity of a Lexeme
, which contains the LexemeId
of the parent lexeme and exposes it via getLexemeId()
.
- Copyright
- GPL-2.0-or-later
◆ __serialize()
Wikibase\Lexeme\Domain\Model\LexemeSubEntityId::__serialize |
( |
| ) |
|
◆ __unserialize()
Wikibase\Lexeme\Domain\Model\LexemeSubEntityId::__unserialize |
( |
array | $data | ) |
|
◆ extractLexemeIdAndSubEntityId()
Wikibase\Lexeme\Domain\Model\LexemeSubEntityId::extractLexemeIdAndSubEntityId |
( |
| ) |
|
|
private |
This method should not be used for code that is expected to work with dummy ids.
- Returns
- string[] two strings containing the lexeme id serialization and the sub-entity suffix, e.g. ['L1', 'F1'] for form id L1-F1.
◆ formatSerialization()
static Wikibase\Lexeme\Domain\Model\LexemeSubEntityId::formatSerialization |
( |
EntityId | $containerEntityId, |
|
|
string | $idPrefix, |
|
|
int | $id ) |
|
static |
Format a serialization of a sub entity id, e.g.
'L1-F3'
- Parameters
-
EntityId | $containerEntityId | Id of the entity in which the sub entity resides, e.g. L1 |
string | $idPrefix | The prefix of the sub entity, e.g. 'F' |
int | $id | The id of the sub entity, e.g. '3' |
- Returns
- string
◆ getIdSuffix()
Wikibase\Lexeme\Domain\Model\LexemeSubEntityId::getIdSuffix |
( |
| ) |
|
Returns the sub-entity id suffix, e.g.
'F1' for L1-F1, or 'S1' for L1-S1. Returns empty string for dummy ids and the like.
- Returns
- string
◆ getLexemeId()
Wikibase\Lexeme\Domain\Model\LexemeSubEntityId::getLexemeId |
( |
| ) |
|
◆ getSerialization()
Wikibase\Lexeme\Domain\Model\LexemeSubEntityId::getSerialization |
( |
| ) |
|
◆ SUBENTITY_ID_SEPARATOR
const Wikibase\Lexeme\Domain\Model\LexemeSubEntityId::SUBENTITY_ID_SEPARATOR = '-' |
The documentation for this class was generated from the following file: