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

Package private. More...

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

Public Member Functions

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

Private Attributes

SnakSerializer $snakSerializer
 

Additional Inherited Members

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

Detailed Description

Package private.

Author
Thomas Pellissier Tanon

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Serializers\SnakListSerializer::__construct ( SnakSerializer $snakSerializer,
bool $useObjectsForEmptyMaps )

Member Function Documentation

◆ isSerializerFor()

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

◆ serialize()

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

Member Data Documentation

◆ $snakSerializer

SnakSerializer Wikibase\DataModel\Serializers\SnakListSerializer::$snakSerializer
private

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