Factory for new, empty Entity objects.
More...
Factory for new, empty Entity objects.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Lib\EntityFactory::__construct |
( |
array |
$instantiators | ) |
|
- Parameters
-
callable[] | $instantiators | Array mapping entity type identifiers to callbacks returning a new, empty entity of that type. |
◆ newEmpty()
Wikibase\Lib\EntityFactory::newEmpty |
( |
|
$entityType | ) |
|
- Parameters
-
- Exceptions
-
- Returns
- EntityDocument
◆ $instantiators
Wikibase\Lib\EntityFactory::$instantiators |
|
private |
The documentation for this class was generated from the following file: