Mutable (e.g.
More...
Mutable (e.g.
the provided StatementList can be changed) implementation of a Lexeme's sense in the lexicographical data model.
- See also
- https://www.mediawiki.org/wiki/Extension:WikibaseLexeme/Data_Model#Sense
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lexeme\Domain\Model\Sense::__construct |
( |
SenseId | $id, |
|
|
TermList | $glossList, |
|
|
StatementList | $statementList = null ) |
◆ __clone()
Wikibase\Lexeme\Domain\Model\Sense::__clone |
( |
| ) |
|
◆ clear()
Wikibase\Lexeme\Domain\Model\Sense::clear |
( |
| ) |
|
Clears the glosses and statements of a sense.
Note that this leaves the sense in an insufficiently initialized state.
◆ copy()
Wikibase\Lexeme\Domain\Model\Sense::copy |
( |
| ) |
|
- See also
- EntityDocument::copy
- Since
- 0.1
- Returns
- self
◆ equals()
Wikibase\Lexeme\Domain\Model\Sense::equals |
( |
| $target | ) |
|
- See also
- EntityDocument::equals
- Parameters
-
- Returns
- bool True if the sense's contents are equal. Does not consider the ID.
◆ getGlosses()
Wikibase\Lexeme\Domain\Model\Sense::getGlosses |
( |
| ) |
|
◆ getId()
Wikibase\Lexeme\Domain\Model\Sense::getId |
( |
| ) |
|
◆ getStatements()
Wikibase\Lexeme\Domain\Model\Sense::getStatements |
( |
| ) |
|
◆ getType()
Wikibase\Lexeme\Domain\Model\Sense::getType |
( |
| ) |
|
◆ isEmpty()
Wikibase\Lexeme\Domain\Model\Sense::isEmpty |
( |
| ) |
|
- See also
- EntityDocument::isEmpty
- Returns
- bool
◆ setId()
Wikibase\Lexeme\Domain\Model\Sense::setId |
( |
| $id | ) |
|
◆ $glossList
Wikibase\Lexeme\Domain\Model\Sense::$glossList |
|
protected |
◆ $id
Wikibase\Lexeme\Domain\Model\Sense::$id |
|
protected |
◆ $statementList
Wikibase\Lexeme\Domain\Model\Sense::$statementList |
|
protected |
◆ ENTITY_TYPE
const Wikibase\Lexeme\Domain\Model\Sense::ENTITY_TYPE = 'sense' |
The documentation for this class was generated from the following file: