Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\PropertyDataTypeChanger Class Reference

Class for changing a property's data type. More...

Public Member Functions

 __construct (EntityRevisionLookup $entityRevisionLookup, EntityStore $entityStore, DataTypeFactory $dataTypeFactory)
 

Private Member Functions

 assertDataTypesCompatible ( $oldTypeId, $newTypeId)
 

Private Attributes

 $entityStore
 
 $entityRevisionLookup
 
 $dataTypeFactory
 

Detailed Description

Class for changing a property's data type.

Please be aware of the implication such an operation has.

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\PropertyDataTypeChanger::__construct ( EntityRevisionLookup $entityRevisionLookup,
EntityStore $entityStore,
DataTypeFactory $dataTypeFactory )

Member Function Documentation

◆ assertDataTypesCompatible()

Wikibase\Repo\PropertyDataTypeChanger::assertDataTypesCompatible ( $oldTypeId,
$newTypeId )
private
Parameters
string$oldTypeId
string$newTypeId
Exceptions
InvalidArgumentException

Member Data Documentation

◆ $dataTypeFactory

Wikibase\Repo\PropertyDataTypeChanger::$dataTypeFactory
private

◆ $entityRevisionLookup

Wikibase\Repo\PropertyDataTypeChanger::$entityRevisionLookup
private

◆ $entityStore

Wikibase\Repo\PropertyDataTypeChanger::$entityStore
private

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