SerializerInterface
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
at line 35
string
getName()
Get serializer name
at line 42
string
getExtension()
Get serializer extension
at line 49
string
getMimeType()
Get serializer mime type
at line 56
prepareFile(
SplFileObject $fileObject)
Prepare file to receive serialized data
at line 65
string
serialize(
mixed $data)
Serialize data
at line 72
null|string
separator()
Get string that separate serialized data
at line 79
finalizeFile(
SplFileObject $fileObject)
Finalize file with serialized data
at line 88
array
unserialize(
SplFileObject $fileObject)
Unserialize data