Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Usage\EntityUsageFactory Class Reference

Factory service for generating EntityUsage objects based on their identity strings. More...

Public Member Functions

 __construct (EntityIdParser $entityIdParser)
 
 newFromIdentity ( $identity)
 

Private Attributes

 $entityIdParser
 

Detailed Description

Factory service for generating EntityUsage objects based on their identity strings.

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Usage\EntityUsageFactory::__construct ( EntityIdParser  $entityIdParser)

Member Function Documentation

◆ newFromIdentity()

Wikibase\Client\Usage\EntityUsageFactory::newFromIdentity (   $identity)
Parameters
string$identity
Returns
EntityUsage
Exceptions
InvalidArgumentException

Member Data Documentation

◆ $entityIdParser

Wikibase\Client\Usage\EntityUsageFactory::$entityIdParser
private

The documentation for this class was generated from the following file: