- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lib\Normalization\StringValueNormalizer::__construct |
( |
StringNormalizer | $stringNormalizer, |
|
|
LoggerInterface | $logger ) |
◆ normalize()
Wikibase\Lib\Normalization\StringValueNormalizer::normalize |
( |
DataValue | $value | ) |
|
Normalize the given value.
- Parameters
-
DataValue | $value | The 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.
◆ $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: