Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult:

Public Member Functions

 getRevisionId ()
 
 getRevisionTimestamp ()
 
 getRedirectTarget ()
 
 itemExists ()
 
 isRedirect ()
 

Static Public Member Functions

static concreteRevision (int $revisionId, string $revisionTimestamp)
 
static redirect (ItemId $redirectTarget)
 
static itemNotFound ()
 

Private Attributes

int $revisionId = null
 
string $revisionTimestamp = null
 
ItemId $redirectTarget = null
 

Detailed Description

Member Function Documentation

◆ concreteRevision()

static Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::concreteRevision ( int  $revisionId,
string  $revisionTimestamp 
)
static

◆ getRedirectTarget()

Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::getRedirectTarget ( )
Exceptions
RuntimeExceptionif not a redirect result

◆ getRevisionId()

Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::getRevisionId ( )
Exceptions
RuntimeExceptionif not a concrete revision result

◆ getRevisionTimestamp()

Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::getRevisionTimestamp ( )
Exceptions
RuntimeExceptionif not a concrete revision result

◆ isRedirect()

Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::isRedirect ( )

◆ itemExists()

Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::itemExists ( )

◆ itemNotFound()

static Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::itemNotFound ( )
static

◆ redirect()

static Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::redirect ( ItemId  $redirectTarget)
static

Member Data Documentation

◆ $redirectTarget

ItemId Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::$redirectTarget = null
private

◆ $revisionId

int Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::$revisionId = null
private

◆ $revisionTimestamp

string Wikibase\Repo\RestApi\Domain\Model\LatestItemRevisionMetadataResult::$revisionTimestamp = null
private

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