Page MenuHomeWickedGov Phorge

DummyPropertyDataTypeLookup.php
No OneTemporary

Size
638 B
Referenced Files
None
Subscribers
None

DummyPropertyDataTypeLookup.php

<?php
use Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup;
class DummyPropertyDataTypeLookup implements PropertyDataTypeLookup {
/**
* @var int
*/
public static $mathId = 1;
/**
* Returns the data type for the Property of which the id is given.
*
* @since 2.0
*
* @param \Wikibase\DataModel\Entity\PropertyId $propertyId
*
* @return string
* @throws \Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookupException
*/
public function getDataTypeIdForProperty( \Wikibase\DataModel\Entity\PropertyId $propertyId ) {
return $propertyId->getNumericId() == self::$mathId ? 'math' : 'not-math';
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Aug 18, 16:11 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
40/fa/948f26c91a39abd9471ea03dc9b9
Default Alt Text
DummyPropertyDataTypeLookup.php (638 B)

Event Timeline