Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Services\DataValue\ValuesFinder Class Reference

Find all data values for a specified data type in an array of snaks. More...

Public Member Functions

 __construct (PropertyDataTypeLookup $propertyDataTypeLookup)
 
 findFromSnaks (array $snaks, $dataType)
 Find all data values for the specified data type in the array of snaks. More...
 

Private Member Functions

 isMatchingDataType (PropertyId $propertyId, $dataType)
 

Private Attributes

 $propertyDataTypeLookup
 

Detailed Description

Find all data values for a specified data type in an array of snaks.

Since
1.1
Author
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\DataValue\ValuesFinder::__construct ( PropertyDataTypeLookup  $propertyDataTypeLookup)

Member Function Documentation

◆ findFromSnaks()

Wikibase\DataModel\Services\DataValue\ValuesFinder::findFromSnaks ( array  $snaks,
  $dataType 
)

Find all data values for the specified data type in the array of snaks.

Parameters
Snak[]$snaks
string$dataType
Returns
DataValue[]

◆ isMatchingDataType()

Wikibase\DataModel\Services\DataValue\ValuesFinder::isMatchingDataType ( PropertyId  $propertyId,
  $dataType 
)
private
Parameters
PropertyId$propertyId
string$dataType
Returns
bool

Member Data Documentation

◆ $propertyDataTypeLookup

Wikibase\DataModel\Services\DataValue\ValuesFinder::$propertyDataTypeLookup
private

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