Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Serializers\PropertySerializer Class Reference

Package private. More...

+ Inheritance diagram for Wikibase\DataModel\Serializers\PropertySerializer:
+ Collaboration diagram for Wikibase\DataModel\Serializers\PropertySerializer:

Public Member Functions

 __construct (Serializer $termListSerializer, Serializer $aliasGroupListSerializer, Serializer $statementListSerializer)
 
 isSerializerFor ( $object)
 
 serialize ( $object)
 

Private Member Functions

 getSerialized (Property $property)
 
 addIdToSerialization (Property $property, array &$serialization)
 
 addTermsToSerialization (Property $property, array &$serialization)
 
 addStatementListToSerialization (Property $property, array &$serialization)
 

Private Attributes

 $termListSerializer
 
 $aliasGroupListSerializer
 
 $statementListSerializer
 

Detailed Description

Package private.

Author
Thomas Pellissier Tanon
Jan Zerebecki < jan.w.nosp@m.ikim.nosp@m.edia@.nosp@m.zere.nosp@m.becki.nosp@m..de >
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Serializers\PropertySerializer::__construct ( Serializer $termListSerializer,
Serializer $aliasGroupListSerializer,
Serializer $statementListSerializer )

Member Function Documentation

◆ addIdToSerialization()

Wikibase\DataModel\Serializers\PropertySerializer::addIdToSerialization ( Property $property,
array & $serialization )
private

◆ addStatementListToSerialization()

Wikibase\DataModel\Serializers\PropertySerializer::addStatementListToSerialization ( Property $property,
array & $serialization )
private

◆ addTermsToSerialization()

Wikibase\DataModel\Serializers\PropertySerializer::addTermsToSerialization ( Property $property,
array & $serialization )
private

◆ getSerialized()

Wikibase\DataModel\Serializers\PropertySerializer::getSerialized ( Property $property)
private

◆ isSerializerFor()

Wikibase\DataModel\Serializers\PropertySerializer::isSerializerFor ( $object)
See also
Serializer::isSerializerFor
Parameters
mixed$object
Returns
bool

◆ serialize()

Wikibase\DataModel\Serializers\PropertySerializer::serialize ( $object)
See also
Serializer::serialize
Parameters
Property$object
Exceptions
SerializationException
Returns
array

Member Data Documentation

◆ $aliasGroupListSerializer

Wikibase\DataModel\Serializers\PropertySerializer::$aliasGroupListSerializer
private

◆ $statementListSerializer

Wikibase\DataModel\Serializers\PropertySerializer::$statementListSerializer
private

◆ $termListSerializer

Wikibase\DataModel\Serializers\PropertySerializer::$termListSerializer
private

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