- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lib\Normalization\SnakNormalizer::__construct |
( |
PropertyDataTypeLookup | $dataTypeLookup, |
|
|
LoggerInterface | $logger, |
|
|
array | $normalizerDefinitions ) |
- Parameters
-
PropertyDataTypeLookup | $dataTypeLookup | Used to look up property data types for the given snaks. If the data type cannot be looked up, an info message is logged and the snak value is only normalized according to its data value type. |
LoggerInterface | $logger | For logging that info message. |
callable[] | $normalizerDefinitions | A mapping from data and value types (PT:xxx and VT:xxx) to callables which return either a single DataValueNormalizer or a list of them. |
◆ getNormalizer()
Wikibase\Lib\Normalization\SnakNormalizer::getNormalizer |
( |
PropertyId | $propertyId, |
|
|
string | $valueType ) |
|
private |
◆ makeNormalizer()
Wikibase\Lib\Normalization\SnakNormalizer::makeNormalizer |
( |
PropertyId | $propertyId, |
|
|
string | $valueType ) |
|
private |
◆ normalize()
Wikibase\Lib\Normalization\SnakNormalizer::normalize |
( |
Snak | $snak | ) |
|
◆ $dataTypeLookup
Wikibase\Lib\Normalization\SnakNormalizer::$dataTypeLookup |
|
private |
◆ $logger
Wikibase\Lib\Normalization\SnakNormalizer::$logger |
|
private |
◆ $normalizerDefinitions
Wikibase\Lib\Normalization\SnakNormalizer::$normalizerDefinitions |
|
private |
◆ $normalizers
Wikibase\Lib\Normalization\SnakNormalizer::$normalizers = [] |
|
private |
The documentation for this class was generated from the following file: