PHP 클래스 lithium\tests\mocks\storage\cache\strategy\MockSerializer

Simulates the 'Serializer' strategy.
상속: extends lithium\core\Object
파일 보기 프로젝트 열기: unionofrad/lithium

공개 메소드들

메소드 설명
read ( string $data ) : mixed Read strategy method.
write ( mixed $data ) : string Write strategy method.

메소드 상세

read() 공개 메소드

Unserializes the passed data.
public read ( string $data ) : mixed
$data string Serialized data.
리턴 mixed Result of unserialization.

write() 공개 메소드

Serializes the passed data.
public write ( mixed $data ) : string
$data mixed The data to be serialized.
리턴 string Serialized data.