Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Serializers\SnakSerializer Class Reference

Package private. More...

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

Public Member Functions

 __construct (Serializer $dataValueSerializer, $serializeWithHash=true)
 
 isSerializerFor ( $object)
 
 serialize ( $object)
 

Private Member Functions

 getSerialized (Snak $snak)
 

Private Attributes

 $dataValueSerializer
 
 $serializeWithHash
 

Detailed Description

Package private.

Author
Thomas Pellissier Tanon
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Serializers\SnakSerializer::__construct ( Serializer  $dataValueSerializer,
  $serializeWithHash = true 
)
Parameters
Serializer$dataValueSerializer
bool$serializeWithHash

Member Function Documentation

◆ getSerialized()

Wikibase\DataModel\Serializers\SnakSerializer::getSerialized ( Snak  $snak)
private

◆ isSerializerFor()

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

◆ serialize()

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

Member Data Documentation

◆ $dataValueSerializer

Wikibase\DataModel\Serializers\SnakSerializer::$dataValueSerializer
private

◆ $serializeWithHash

Wikibase\DataModel\Serializers\SnakSerializer::$serializeWithHash
private

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