3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Serializer\Adapter
;
12 interface AdapterInterface
15 * Generates a storable representation of a value.
17 * @param mixed $value Data to serialize
19 * @throws \Zend\Serializer\Exception\ExceptionInterface
21 public function serialize($value);
24 * Creates a PHP value from a stored representation.
26 * @param string $serialized Serialized string
28 * @throws \Zend\Serializer\Exception\ExceptionInterface
30 public function unserialize($serialized);