PHP Class lithium\tests\mocks\storage\cache\strategy\MockSerializer

Simulates the 'Serializer' strategy.
Inheritance: extends lithium\core\Object
Afficher le fichier Open project: unionofrad/lithium

Méthodes publiques

Méthode Description
read ( string $data ) : mixed Read strategy method.
write ( mixed $data ) : string Write strategy method.

Method Details

read() public méthode

Unserializes the passed data.
public read ( string $data ) : mixed
$data string Serialized data.
Résultat mixed Result of unserialization.

write() public méthode

Serializes the passed data.
public write ( mixed $data ) : string
$data mixed The data to be serialized.
Résultat string Serialized data.