Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Normalization\StringValueNormalizer Class Reference
+ Inheritance diagram for Wikibase\Lib\Normalization\StringValueNormalizer:
+ Collaboration diagram for Wikibase\Lib\Normalization\StringValueNormalizer:

Public Member Functions

 __construct (StringNormalizer $stringNormalizer, LoggerInterface $logger)
 
 normalize (DataValue $value)
 Normalize the given value. More...
 

Private Attributes

 $stringNormalizer
 
 $logger
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Normalization\StringValueNormalizer::__construct ( StringNormalizer  $stringNormalizer,
LoggerInterface  $logger 
)

Member Function Documentation

◆ normalize()

Wikibase\Lib\Normalization\StringValueNormalizer::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

◆ $logger

Wikibase\Lib\Normalization\StringValueNormalizer::$logger
private

◆ $stringNormalizer

Wikibase\Lib\Normalization\StringValueNormalizer::$stringNormalizer
private

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