PHP Interface Tebru\Retrofit\Adapter\SerializerAdapter

Author: Nate Brunette ([email protected])
Afficher le fichier Open project: tebru/retrofit-php

Méthodes publiques

Méthode Description
serialize ( mixed $data, array $context = [] ) : string Serialize an object to a string
setDefaultSerializationContext ( array $context ) Set the default serialization context
setSerializeTo ( string $serializeTo ) Set the format that data should be serialized to
toArray ( mixed $data, array $context = [] ) : array Serialize an object to an array

Method Details

serialize() public méthode

Serialize an object to a string
public serialize ( mixed $data, array $context = [] ) : string
$data mixed The data that should be serialized
$context array Serializer specific context
Résultat string

setDefaultSerializationContext() public méthode

Set the default serialization context
public setDefaultSerializationContext ( array $context )
$context array

setSerializeTo() public méthode

Set the format that data should be serialized to
public setSerializeTo ( string $serializeTo )
$serializeTo string

toArray() public méthode

Serialize an object to an array
public toArray ( mixed $data, array $context = [] ) : array
$data mixed The data that should be serialized
$context array Serializer specific context
Résultat array