WikibaseLexeme
MediaWiki WikibaseLexeme extension
|
Set of Senses in which uniqueness of a Sense is controlled by its ID. More...
Public Member Functions | |
__construct (array $senses=[]) | |
toArray () | |
toArrayUnordered () | |
Return the individual Senses in arbitrary order. | |
count () | |
maxSenseIdNumber () | |
add (Sense $sense) | |
remove (SenseId $senseId) | |
put (Sense $sense) | |
Replace the sense identified by $sense->getId() with the given one or add it. | |
getById (SenseId $senseId) | |
copy () | |
__clone () | |
isEmpty () | |
equals ( $other) | |
hasSenseWithId (SenseId $id) | |
Private Member Functions | |
sortSenses (array $senses) | |
sameSenses (SenseSet $other) | |
Private Attributes | |
array | $senses = [] |
Set of Senses in which uniqueness of a Sense is controlled by its ID.
Supposed to be used only inside the Lexeme class.
Wikibase\Lexeme\Domain\Model\SenseSet::__construct | ( | array | $senses = [] | ) |
Sense[] | $senses |
Wikibase\Lexeme\Domain\Model\SenseSet::__clone | ( | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::add | ( | Sense | $sense | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::copy | ( | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::count | ( | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::equals | ( | $other | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::getById | ( | SenseId | $senseId | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::hasSenseWithId | ( | SenseId | $id | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::isEmpty | ( | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::maxSenseIdNumber | ( | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::put | ( | Sense | $sense | ) |
Replace the sense identified by $sense->getId() with the given one or add it.
Wikibase\Lexeme\Domain\Model\SenseSet::remove | ( | SenseId | $senseId | ) |
|
private |
|
private |
Sense[] | $senses |
Wikibase\Lexeme\Domain\Model\SenseSet::toArray | ( | ) |
Wikibase\Lexeme\Domain\Model\SenseSet::toArrayUnordered | ( | ) |
Return the individual Senses in arbitrary order.
Only use this method if the order is certainly insignificant, e.g. because the Senses will be summarized or reduced in some way. Otherwise, use toArray()
.
|
private |