Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
lithium
tests
mocks
storage
cache
strategy
MockSerializer
PHP Class lithium\tests\mocks\storage\cache\strategy\MockSerializer
Simulates the 'Serializer' strategy.
Inheritance:
extends
lithium\core\Object
Mostra file
Open project: unionofrad/lithium
Public Methods
Method
Description
read
(
string
$data
) :
mixed
Read strategy method.
write
(
mixed
$data
) :
string
Write strategy method.
Method Details
read()
public
method
Unserializes the passed data.
See link:
PHP Manual: unserialize()
public
read
(
string
$data
) :
mixed
$data
string
Serialized data.
return
mixed
Result of unserialization.
write()
public
method
Serializes the passed data.
See link:
PHP Manual: serialize()
public
write
(
mixed
$data
) :
string
$data
mixed
The data to be serialized.
return
string
Serialized data.