Wikibase
MediaWiki Wikibase extension
|
Trivial EntityHolder holding an entity object. More...
Public Member Functions | |
__construct (EntityDocument $entity) | |
getEntity ( $expectedClass=EntityDocument::class) | |
getEntityId () | |
getEntityType () | |
Private Attributes | |
$entity | |
Trivial EntityHolder holding an entity object.
Wikibase\Repo\Content\EntityInstanceHolder::__construct | ( | EntityDocument | $entity | ) |
Wikibase\Repo\Content\EntityInstanceHolder::getEntity | ( | $expectedClass = EntityDocument::class | ) |
string | $expectedClass | The class the result is expected to be compatible with. Defaults to EntityDocument. |
RuntimeException | If the entity held by this EntityHolder is not compatible with $expectedClass. |
Implements Wikibase\Repo\Content\EntityHolder.
Wikibase\Repo\Content\EntityInstanceHolder::getEntityId | ( | ) |
Implements Wikibase\Repo\Content\EntityHolder.
Wikibase\Repo\Content\EntityInstanceHolder::getEntityType | ( | ) |
|
private |