Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Normalization\CommonsMediaValueNormalizer Class Reference
+ Inheritance diagram for Wikibase\Repo\Normalization\CommonsMediaValueNormalizer:
+ Collaboration diagram for Wikibase\Repo\Normalization\CommonsMediaValueNormalizer:

Public Member Functions

 __construct (CachingCommonsMediaFileNameLookup $fileNameLookup, LoggerInterface $logger)
 
 normalize (DataValue $value)
 Normalize the given value. More...
 

Private Attributes

 $fileNameLookup
 
 $logger
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Normalization\CommonsMediaValueNormalizer::__construct ( CachingCommonsMediaFileNameLookup  $fileNameLookup,
LoggerInterface  $logger 
)

Member Function Documentation

◆ normalize()

Wikibase\Repo\Normalization\CommonsMediaValueNormalizer::normalize ( DataValue  $value)

Normalize the given value.

Parameters
DataValue$valueThe value to normalize. Every implementation must be able to handle every data value type without error, even if it’s just by returning the same value without modification.
Returns
DataValue A normalized version of the value. If the input value was not normalized, this must be a new object, since data values are immutable; if it was already normalized, this may be a new object or the same instance.

Implements Wikibase\Lib\Normalization\DataValueNormalizer.

Member Data Documentation

◆ $fileNameLookup

Wikibase\Repo\Normalization\CommonsMediaValueNormalizer::$fileNameLookup
private

◆ $logger

Wikibase\Repo\Normalization\CommonsMediaValueNormalizer::$logger
private

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