|
Wikibase
MediaWiki Wikibase extension
|
PropertyDataTypeLookup that uses an in memory array to retrieve the requested information. More...
Public Member Functions | |
| getDataTypeIdForProperty (PropertyId $propertyId) | |
| setDataTypeForProperty (PropertyId $propertyId, $dataTypeId) | |
Private Member Functions | |
| verifyDataTypeIsSet (PropertyId $propertyId) | |
| verifyDataTypeIdType ( $dataTypeId) | |
Private Attributes | |
| $dataTypeIds = [] | |
PropertyDataTypeLookup that uses an in memory array to retrieve the requested information.
If the information is not set when requested an exception is thrown. This class can be used as a fake in tests.
| Wikibase\DataModel\Services\Lookup\InMemoryDataTypeLookup::getDataTypeIdForProperty | ( | PropertyId | $propertyId | ) |
| PropertyId | $propertyId |
| PropertyDataTypeLookupException |
Implements Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup.
| Wikibase\DataModel\Services\Lookup\InMemoryDataTypeLookup::setDataTypeForProperty | ( | PropertyId | $propertyId, |
| $dataTypeId ) |
| PropertyId | $propertyId | |
| string | $dataTypeId |
| InvalidArgumentException |
|
private |
| string | $dataTypeId |
| InvalidArgumentException |
|
private |
| PropertyId | $propertyId |
| PropertyDataTypeLookupException |
|
private |