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

Package private. More...

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

Public Member Functions

 __construct (TermSerializer $termSerializer, bool $useObjectsForEmptyMaps)
 
 serialize ( $object)
 
- Public Member Functions inherited from Wikibase\DataModel\Serializers\MapSerializer
 __construct (bool $useObjectsForEmptyMaps)
 

Protected Member Functions

 generateSerializedArrayRepresentation (TermList $termList)
 
- Protected Member Functions inherited from Wikibase\DataModel\Serializers\MapSerializer
 serializeMap (array $serialization)
 Create the serialized representation of the supplied object.
 

Private Member Functions

 assertIsSerializerFor ( $object)
 

Private Attributes

TermSerializer $termSerializer
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\DataModel\Serializers\MapSerializer
bool $useObjectsForEmptyMaps
 

Detailed Description

Package private.

Author
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Serializers\TermListSerializer::__construct ( TermSerializer $termSerializer,
bool $useObjectsForEmptyMaps )

Member Function Documentation

◆ assertIsSerializerFor()

Wikibase\DataModel\Serializers\TermListSerializer::assertIsSerializerFor ( $object)
private

◆ generateSerializedArrayRepresentation()

Wikibase\DataModel\Serializers\TermListSerializer::generateSerializedArrayRepresentation ( TermList $termList)
protected

◆ serialize()

Wikibase\DataModel\Serializers\TermListSerializer::serialize ( $object)
See also
Serializer::serialize
Parameters
TermList$object
Returns
array[]
Exceptions
SerializationException

Member Data Documentation

◆ $termSerializer

TermSerializer Wikibase\DataModel\Serializers\TermListSerializer::$termSerializer
private

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