Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Entity\EntityRedirect Class Reference

Represents a redirect from one EntityId to another. More...

Public Member Functions

 __construct (EntityId $entityId, EntityId $targetId)
 
 getEntityId ()
 
 getTargetId ()
 
 equals ( $that)
 
 __toString ()
 

Private Attributes

 $entityId
 
 $targetId
 

Detailed Description

Represents a redirect from one EntityId to another.

Since
4.2
Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Entity\EntityRedirect::__construct ( EntityId $entityId,
EntityId $targetId )
Parameters
EntityId$entityId
EntityId$targetId
Exceptions
InvalidArgumentException

Member Function Documentation

◆ __toString()

Wikibase\DataModel\Entity\EntityRedirect::__toString ( )
Since
4.4
Returns
string

◆ equals()

Wikibase\DataModel\Entity\EntityRedirect::equals ( $that)
Parameters
mixed$that
Returns
bool

◆ getEntityId()

Wikibase\DataModel\Entity\EntityRedirect::getEntityId ( )
Returns
EntityId

◆ getTargetId()

Wikibase\DataModel\Entity\EntityRedirect::getTargetId ( )
Returns
EntityId

Member Data Documentation

◆ $entityId

Wikibase\DataModel\Entity\EntityRedirect::$entityId
private

◆ $targetId

Wikibase\DataModel\Entity\EntityRedirect::$targetId
private

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