Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\Domain\Serializers\ItemDataSerializer Class Reference

Public Member Functions

 __construct (StatementListSerializer $statementsSerializer, SiteLinkListSerializer $siteLinksSerializer)
 
 serialize (ItemData $itemData)
 

Private Attributes

 $statementsSerializer
 
 $siteLinksSerializer
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Domain\Serializers\ItemDataSerializer::__construct ( StatementListSerializer  $statementsSerializer,
SiteLinkListSerializer  $siteLinksSerializer 
)
Parameters
StatementListSerializer$statementsSerializershould have $useObjectsForMaps set to true when used within a json presenter
SiteLinkListSerializer$siteLinksSerializershould have $useObjectsForMaps set to true when used within a json presenter

Member Function Documentation

◆ serialize()

Wikibase\Repo\RestApi\Domain\Serializers\ItemDataSerializer::serialize ( ItemData  $itemData)

Member Data Documentation

◆ $siteLinksSerializer

Wikibase\Repo\RestApi\Domain\Serializers\ItemDataSerializer::$siteLinksSerializer
private

◆ $statementsSerializer

Wikibase\Repo\RestApi\Domain\Serializers\ItemDataSerializer::$statementsSerializer
private

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