|
| __construct (array $idBuilders) |
| Takes an array in which each key is a preg_match pattern.
|
|
| parse ( $idSerialization) |
|
- Since
- 4.2
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
◆ __construct()
Wikibase\DataModel\Entity\DispatchingEntityIdParser::__construct |
( |
array | $idBuilders | ) |
|
Takes an array in which each key is a preg_match pattern.
The first pattern the id matches against will be picked. The value this key points to has to be a builder function that takes as only required argument the id serialization (string) and returns an EntityId instance.
- Parameters
-
◆ assertIdIsString()
Wikibase\DataModel\Entity\DispatchingEntityIdParser::assertIdIsString |
( |
| $idSerialization | ) |
|
|
private |
◆ buildId()
Wikibase\DataModel\Entity\DispatchingEntityIdParser::buildId |
( |
| $idBuilder, |
|
|
| $idSerialization ) |
|
private |
- Parameters
-
callable | $idBuilder | |
string | $idSerialization | |
- Exceptions
-
- Returns
- EntityId
◆ parse()
Wikibase\DataModel\Entity\DispatchingEntityIdParser::parse |
( |
| $idSerialization | ) |
|
◆ $idBuilders
Wikibase\DataModel\Entity\DispatchingEntityIdParser::$idBuilders |
|
private |
The documentation for this class was generated from the following file: