interface SerializerInterface

Interface SerializerInterface

Methods

string
getId()

Get serializer identifier

string
getName()

Get serializer name

string
getExtension()

Get serializer extension

string
getMimeType()

Get serializer mime type

prepareFile( SplFileObject $fileObject)

Prepare file to receive serialized data

string
serialize( mixed $data)

Serialize data

null|string
separator()

Get string that separate serialized data

finalizeFile( SplFileObject $fileObject)

Finalize file with serialized data

array
unserialize( SplFileObject $fileObject)

Unserialize data

Details

at line 28
string getId()

Get serializer identifier

Return Value

string The serializer identifier

at line 35
string getName()

Get serializer name

Return Value

string The serializer name

at line 42
string getExtension()

Get serializer extension

Return Value

string The serializer extension

at line 49
string getMimeType()

Get serializer mime type

Return Value

string The serializer mime type

at line 56
prepareFile( SplFileObject $fileObject)

Prepare file to receive serialized data

Parameters

SplFileObject $fileObject A file object

at line 65
string serialize( mixed $data)

Serialize data

Parameters

mixed $data Data to serialize

Return Value

string Serialized data

at line 72
null|string separator()

Get string that separate serialized data

Return Value

null|string Wrap separator string

at line 79
finalizeFile( SplFileObject $fileObject)

Finalize file with serialized data

Parameters

SplFileObject $fileObject A file object

at line 88
array unserialize( SplFileObject $fileObject)

Unserialize data

Parameters

SplFileObject $fileObject A file object

Return Value

array Unserialized data