Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Entity\PropertyDataTypeMatcher Class Reference

Check if a PropertyId is for a Property with a specific data type. More...

Public Member Functions

 __construct (PropertyDataTypeLookup $propertyDataTypeLookup)
 
 isMatchingDataType (PropertyId $propertyId, $dataType)
 Returns if the property with the specified property id has the provided data type.
 

Private Member Functions

 findDataTypeIdForProperty (PropertyId $propertyId)
 

Private Attributes

 $propertyDataTypeLookup
 

Detailed Description

Check if a PropertyId is for a Property with a specific data type.

Since
3.1
Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\Entity\PropertyDataTypeMatcher::__construct ( PropertyDataTypeLookup $propertyDataTypeLookup)

Member Function Documentation

◆ findDataTypeIdForProperty()

Wikibase\DataModel\Services\Entity\PropertyDataTypeMatcher::findDataTypeIdForProperty ( PropertyId $propertyId)
private
Parameters
PropertyId$propertyId
Returns
string
Exceptions
PropertyDataTypeLookupException

◆ isMatchingDataType()

Wikibase\DataModel\Services\Entity\PropertyDataTypeMatcher::isMatchingDataType ( PropertyId $propertyId,
$dataType )

Returns if the property with the specified property id has the provided data type.

Parameters
PropertyId$propertyId
string$dataType
Returns
bool

Member Data Documentation

◆ $propertyDataTypeLookup

Wikibase\DataModel\Services\Entity\PropertyDataTypeMatcher::$propertyDataTypeLookup
private

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