\TriTan\CommonSerializer

Summary

Methods
Properties
Constants
serialize()
unserialize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
isSerialized()
No private properties found
N/A

Methods

serialize()

serialize(string  $data) : string

Serializes data if necessary.

Parameters

string $data

Data to be serialized.

Throws

\InvalidArgumentException

Returns

string —

Serialized data or original string.

unserialize()

unserialize(string  $data) : string

Unserializes data if necessary.

Parameters

string $data

Data that should be unserialzed.

Throws

\InvalidArgumentException

Returns

string —

Unserialized data or original string.

isSerialized()

isSerialized(  $data) 

Parameters

$data