PropertyDataTypeLookup that uses an in memory array to retrieve the requested information.
More...
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.
- Since
- 1.0
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
◆ getDataTypeIdForProperty()
Wikibase\DataModel\Services\Lookup\InMemoryDataTypeLookup::getDataTypeIdForProperty |
( |
PropertyId | $propertyId | ) |
|
◆ setDataTypeForProperty()
Wikibase\DataModel\Services\Lookup\InMemoryDataTypeLookup::setDataTypeForProperty |
( |
PropertyId | $propertyId, |
|
|
| $dataTypeId ) |
- Since
- 1.0
- Parameters
-
PropertyId | $propertyId | |
string | $dataTypeId | |
- Exceptions
-
◆ verifyDataTypeIdType()
Wikibase\DataModel\Services\Lookup\InMemoryDataTypeLookup::verifyDataTypeIdType |
( |
| $dataTypeId | ) |
|
|
private |
◆ verifyDataTypeIsSet()
Wikibase\DataModel\Services\Lookup\InMemoryDataTypeLookup::verifyDataTypeIsSet |
( |
PropertyId | $propertyId | ) |
|
|
private |
- Parameters
-
- Exceptions
-
PropertyDataTypeLookupException | |
◆ $dataTypeIds
Wikibase\DataModel\Services\Lookup\InMemoryDataTypeLookup::$dataTypeIds = [] |
|
private |
The documentation for this class was generated from the following file: