Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\FieldPropertyInfoProvider Class Reference

PropertyInfoProvider implementation based on a specific field in the array returned by a PropertyInfoLookup. More...

+ Inheritance diagram for Wikibase\Lib\Store\FieldPropertyInfoProvider:
+ Collaboration diagram for Wikibase\Lib\Store\FieldPropertyInfoProvider:

Public Member Functions

 __construct (PropertyInfoLookup $infoLookup, $propertyInfoKey)
 
 getPropertyInfo (PropertyId $propertyId)
 Returns the value for the property info field specified in the constructor. More...
 

Private Attributes

 $infoLookup
 
 $propertyInfoKey
 

Detailed Description

PropertyInfoProvider implementation based on a specific field in the array returned by a PropertyInfoLookup.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\FieldPropertyInfoProvider::__construct ( PropertyInfoLookup  $infoLookup,
  $propertyInfoKey 
)
Parameters
PropertyInfoLookup$infoLookup
string$propertyInfoKeyName of the desired field in the PropertyInfo array. Use one of the PropertyInfoStore::KEY_XXX constants.

Member Function Documentation

◆ getPropertyInfo()

Wikibase\Lib\Store\FieldPropertyInfoProvider::getPropertyInfo ( PropertyId  $propertyId)

Returns the value for the property info field specified in the constructor.

Parameters
PropertyId$propertyId
Returns
mixed|null
Exceptions
StorageException

Implements Wikibase\Lib\Store\PropertyInfoProvider.

Member Data Documentation

◆ $infoLookup

Wikibase\Lib\Store\FieldPropertyInfoProvider::$infoLookup
private

◆ $propertyInfoKey

Wikibase\Lib\Store\FieldPropertyInfoProvider::$propertyInfoKey
private

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