Метод | Описание | |
---|---|---|
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 |
public setDefaultSerializationContext ( array $context ) | ||
$context | array |
public setSerializeTo ( string $serializeTo ) | ||
$serializeTo | string |