- Since
- 0.5
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Thiemo Kreuz
-
Daniel Kinzler
◆ __construct()
Wikibase\DataModel\Entity\EntityIdValue::__construct |
( |
EntityId |
$entityId | ) |
|
◆ getArrayValue()
Wikibase\DataModel\Entity\EntityIdValue::getArrayValue |
( |
| ) |
|
- See also
- DataValue::getArrayValue
- Returns
- array
◆ getEntityId()
Wikibase\DataModel\Entity\EntityIdValue::getEntityId |
( |
| ) |
|
◆ getSortKey()
Wikibase\DataModel\Entity\EntityIdValue::getSortKey |
( |
| ) |
|
◆ getType()
static Wikibase\DataModel\Entity\EntityIdValue::getType |
( |
| ) |
|
|
static |
- See also
- DataValue::getType
- Returns
- string
◆ getValue()
Wikibase\DataModel\Entity\EntityIdValue::getValue |
( |
| ) |
|
- See also
- DataValue::getValue
- Returns
- self
◆ newFromArray()
static Wikibase\DataModel\Entity\EntityIdValue::newFromArray |
( |
|
$data | ) |
|
|
static |
Constructs a new instance from the provided data.
Required for
- See also
- DataValueDeserializer. This is expected to round-trip with
-
getArrayValue.
- Deprecated:
- since 7.1. Static DataValue::newFromArray constructors like this are underspecified (not in the DataValue interface), and misleadingly named (should be named newFromArrayValue). Instead, use DataValue builder callbacks in
- See also
- DataValueDeserializer.
- Parameters
-
mixed | $data | Warning! Even if this is expected to be a value as returned by |
- See also
- getArrayValue, callers of this specific newFromArray implementation can not guarantee this. This is not even guaranteed to be an array!
- Exceptions
-
IllegalValueException | if $data is not in the expected format. Subclasses of InvalidArgumentException are expected and properly handled by |
- See also
- DataValueDeserializer.
- Returns
- self
◆ newIdFromTypeAndNumber()
static Wikibase\DataModel\Entity\EntityIdValue::newIdFromTypeAndNumber |
( |
|
$entityType, |
|
|
|
$numericId |
|
) |
| |
|
staticprivate |
- Parameters
-
string | $entityType | |
int | float | string | $numericId | |
- Exceptions
-
- Returns
- self
◆ serialize()
Wikibase\DataModel\Entity\EntityIdValue::serialize |
( |
| ) |
|
- See also
- Serializable::serialize
- Since
- 7.0 serialization format changed in an incompatible way
- Note
- Do not use PHP serialization for persistence! Use a DataValueSerializer instead.
- Returns
- string
◆ unserialize()
Wikibase\DataModel\Entity\EntityIdValue::unserialize |
( |
|
$serialized | ) |
|
- See also
- Serializable::unserialize
- Parameters
-
- Exceptions
-
◆ $entityId
Wikibase\DataModel\Entity\EntityIdValue::$entityId |
|
private |
The documentation for this class was generated from the following file: