| 1 | <?php | ||
| 13 | class BasicEntityIdParser implements EntityIdParser { | ||
| 14 | |||
| 15 | private $idParser; | ||
| 16 | |||
| 17 | 	public function __construct() { | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @param string $idSerialization | ||
| 23 | * | ||
| 24 | * @return ItemId|PropertyId | ||
| 25 | * @throws EntityIdParsingException | ||
| 26 | */ | ||
| 27 | 	public function parse( $idSerialization ) { | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Returns an id builders array. | ||
| 33 | * Keys are preg_match patterns, values are callables. | ||
| 34 | * (See the DispatchingEntityIdParser constructor for more details.) | ||
| 35 | * | ||
| 36 | * This method returns builders for the ids of all entity types | ||
| 37 | * defined by WikibaseDataModel. It is intended to be used by | ||
| 38 | * applications that allow for registration of additional entity | ||
| 39 | * types, and thus want to extend upon this list. The extended | ||
| 40 | * list can then be used to construct a DispatchingEntityIdParser instance. | ||
| 41 | * | ||
| 42 | * @return callable[] | ||
| 43 | */ | ||
| 44 | 	public static function getBuilders() { | ||
| 54 | |||
| 55 | } | ||
| 56 |