|
| | __construct (Deserializer $dataValueDeserializer) |
| |
| | newDataValue ( $dataValueType, $data) |
| | Constructs and returns a new DataValue of specified type with the provided data.
|
| |
| | newFromArray (array $data) |
| | Constructs a DataValue from its array representation.
|
| |
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Daniel Kinzler
◆ __construct()
| Wikibase\Lib\DataValueFactory::__construct |
( |
Deserializer | $dataValueDeserializer | ) |
|
◆ newDataValue()
| Wikibase\Lib\DataValueFactory::newDataValue |
( |
| $dataValueType, |
|
|
| $data ) |
Constructs and returns a new DataValue of specified type with the provided data.
- Parameters
-
| string | $dataValueType | |
| mixed | $data | |
- Returns
- DataValue
- Exceptions
-
◆ newFromArray()
| Wikibase\Lib\DataValueFactory::newFromArray |
( |
array | $data | ) |
|
Constructs a DataValue from its array representation.
This is what
- See also
- DataValue::toArray returns.
- Parameters
-
- Returns
- DataValue
- Exceptions
-
◆ $deserializer
| Wikibase\Lib\DataValueFactory::$deserializer |
|
private |
The documentation for this class was generated from the following file: