Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\SubEntityTypesMapper Class Reference

Thin wrapper around EntityTypeDefinitions::SUB_ENTITY_TYPES. More...

Public Member Functions

 __construct (array $typeMap)
 
 getParentEntityType (string $type)
 Returns the parent entity type for a sub entity type, or null if given an unknown type or not a sub entity type.
 
 getSubEntityTypes (string $type)
 

Private Attributes

 $typeMap
 

Detailed Description

Thin wrapper around EntityTypeDefinitions::SUB_ENTITY_TYPES.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\SubEntityTypesMapper::__construct ( array $typeMap)

Member Function Documentation

◆ getParentEntityType()

Wikibase\Lib\SubEntityTypesMapper::getParentEntityType ( string $type)

Returns the parent entity type for a sub entity type, or null if given an unknown type or not a sub entity type.

◆ getSubEntityTypes()

Wikibase\Lib\SubEntityTypesMapper::getSubEntityTypes ( string $type)

Member Data Documentation

◆ $typeMap

Wikibase\Lib\SubEntityTypesMapper::$typeMap
private

The documentation for this class was generated from the following file: