|
| | __construct (array $idBuilders) |
| | Takes an array in which each key is a preg_match pattern.
|
| |
| | parse (string $idSerialization) |
| |
|
| | buildId (callable $idBuilder, string $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
-
◆ buildId()
| Wikibase\DataModel\Entity\DispatchingEntityIdParser::buildId |
( |
callable | $idBuilder, |
|
|
string | $idSerialization ) |
|
private |
◆ parse()
| Wikibase\DataModel\Entity\DispatchingEntityIdParser::parse |
( |
string | $idSerialization | ) |
|
◆ $idBuilders
| array Wikibase\DataModel\Entity\DispatchingEntityIdParser::$idBuilders |
|
private |
The documentation for this class was generated from the following file: