|
static | newFromNumber ( $numericId) |
| Construct an ItemId given the numeric part of its serialization.
|
|
|
const | PATTERN = '/^Q[1-9]\d{0,9}\z/i' |
|
const | PATTERN = '/^[^:]+\z/' |
|
const | MAX = 2147483647 |
|
- Since
- 0.5
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\DataModel\Entity\ItemId::__construct |
( |
| $idSerialization | ) |
|
◆ __serialize()
Wikibase\DataModel\Entity\ItemId::__serialize |
( |
| ) |
|
◆ __unserialize()
Wikibase\DataModel\Entity\ItemId::__unserialize |
( |
array | $data | ) |
|
◆ assertValidIdFormat()
Wikibase\DataModel\Entity\ItemId::assertValidIdFormat |
( |
| $idSerialization | ) |
|
|
private |
◆ getEntityType()
Wikibase\DataModel\Entity\ItemId::getEntityType |
( |
| ) |
|
◆ getNumericId()
Wikibase\DataModel\Entity\ItemId::getNumericId |
( |
| ) |
|
◆ newFromNumber()
static Wikibase\DataModel\Entity\ItemId::newFromNumber |
( |
| $numericId | ) |
|
|
static |
Construct an ItemId given the numeric part of its serialization.
CAUTION: new usages of this method are discouraged. Typically you should avoid dealing with just the numeric part, and use the whole serialization. Not doing so in new code requires special justification.
- Parameters
-
int | float | string | $numericId | |
- Returns
- self
- Exceptions
-
◆ PATTERN
const Wikibase\DataModel\Entity\ItemId::PATTERN = '/^Q[1-9]\d{0,9}\z/i' |
The documentation for this class was generated from the following file:
- lib/packages/wikibase/data-model/src/Entity/ItemId.php