Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Entity\EntityId Interface Reference
+ Inheritance diagram for Wikibase\DataModel\Entity\EntityId:
+ Collaboration diagram for Wikibase\DataModel\Entity\EntityId:

Public Member Functions

 getEntityType ()
 
 getSerialization ()
 
 __toString ()
 TODO: Consider removing this method in favor of just always calling getSerialization().
 
 equals ( $target)
 
 getLocalPart ()
 TODO: This method shouldn't exist on this interface as it doesn't make sense for certain types of IDs.
 
 getRepositoryName ()
 TODO: This method shouldn't exist on this interface as it doesn't make sense for certain types of IDs.
 
 __serialize ()
 This method replaces Serializable::serialize().
 
 __unserialize (array $data)
 This method replaces Serializable::unserialize().
 

Detailed Description

Member Function Documentation

◆ __serialize()

◆ __toString()

Wikibase\DataModel\Entity\EntityId::__toString ( )

TODO: Consider removing this method in favor of just always calling getSerialization().

Returns
string

Implemented in Wikibase\DataModel\Entity\SerializableEntityId, and Wikibase\Lib\FederatedProperties\FederatedPropertyId.

◆ __unserialize()

Wikibase\DataModel\Entity\EntityId::__unserialize ( array $data)

◆ equals()

Wikibase\DataModel\Entity\EntityId::equals ( $target)

◆ getEntityType()

◆ getLocalPart()

Wikibase\DataModel\Entity\EntityId::getLocalPart ( )

TODO: This method shouldn't exist on this interface as it doesn't make sense for certain types of IDs.

It should be moved to a separate interface, or removed altogether.

Returns
string

Implemented in Wikibase\DataModel\Entity\SerializableEntityId, and Wikibase\Lib\FederatedProperties\FederatedPropertyId.

◆ getRepositoryName()

Wikibase\DataModel\Entity\EntityId::getRepositoryName ( )

TODO: This method shouldn't exist on this interface as it doesn't make sense for certain types of IDs.

It should be moved to a separate interface, or removed altogether.

Returns
string

Implemented in Wikibase\DataModel\Entity\SerializableEntityId, and Wikibase\Lib\FederatedProperties\FederatedPropertyId.

◆ getSerialization()

Wikibase\DataModel\Entity\EntityId::getSerialization ( )

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