WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Domain\Model\Sense Class Reference

Mutable (e.g. More...

+ Inheritance diagram for Wikibase\Lexeme\Domain\Model\Sense:
+ Collaboration diagram for Wikibase\Lexeme\Domain\Model\Sense:

Public Member Functions

 __construct (SenseId $id, TermList $glossList, StatementList $statementList=null)
 
 getId ()
 
 getGlosses ()
 
 getStatements ()
 
 copy ()
 
 __clone ()
 
 getType ()
 
 setId ( $id)
 
 isEmpty ()
 
 equals ( $target)
 
 clear ()
 Clears the glosses and statements of a sense.
 

Public Attributes

const ENTITY_TYPE = 'sense'
 

Protected Attributes

 $id
 
 $glossList
 
 $statementList
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Domain\Model\Sense::__construct ( SenseId $id,
TermList $glossList,
StatementList $statementList = null )

Member Function Documentation

◆ __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
mixed$target
Returns
bool True if the sense's contents are equal. Does not consider the ID.

◆ getGlosses()

Wikibase\Lexeme\Domain\Model\Sense::getGlosses ( )
Returns
TermList

◆ getId()

Wikibase\Lexeme\Domain\Model\Sense::getId ( )
Returns
SenseId

◆ getStatements()

Wikibase\Lexeme\Domain\Model\Sense::getStatements ( )
Returns
StatementList

◆ getType()

Wikibase\Lexeme\Domain\Model\Sense::getType ( )
Returns
string

◆ isEmpty()

Wikibase\Lexeme\Domain\Model\Sense::isEmpty ( )
See also
EntityDocument::isEmpty
Returns
bool

◆ setId()

Wikibase\Lexeme\Domain\Model\Sense::setId ( $id)
Parameters
SenseId$id

Reimplemented in Wikibase\Lexeme\Domain\DummyObjects\BlankSense.

Member Data Documentation

◆ $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: