|
static | newFromNumber ( $numericId) |
| Construct a NumericPropertyId given the numeric part of its serialization.
|
|
|
const | PATTERN = '/^P[1-9]\d{0,9}\z/i' |
|
const | PATTERN = '/^[^:]+\z/' |
|
const | MAX = 2147483647 |
|
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\DataModel\Entity\NumericPropertyId::__construct |
( |
| $idSerialization | ) |
|
◆ __serialize()
Wikibase\DataModel\Entity\NumericPropertyId::__serialize |
( |
| ) |
|
◆ __unserialize()
Wikibase\DataModel\Entity\NumericPropertyId::__unserialize |
( |
array | $data | ) |
|
◆ assertValidIdFormat()
Wikibase\DataModel\Entity\NumericPropertyId::assertValidIdFormat |
( |
| $idSerialization | ) |
|
|
private |
◆ getEntityType()
Wikibase\DataModel\Entity\NumericPropertyId::getEntityType |
( |
| ) |
|
◆ getNumericId()
Wikibase\DataModel\Entity\NumericPropertyId::getNumericId |
( |
| ) |
|
◆ newFromNumber()
static Wikibase\DataModel\Entity\NumericPropertyId::newFromNumber |
( |
| $numericId | ) |
|
|
static |
Construct a NumericPropertyId 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\NumericPropertyId::PATTERN = '/^P[1-9]\d{0,9}\z/i' |
The documentation for this class was generated from the following file: