7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
16 * @package Zend_Serializer
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
25 * @package Zend_Serializer
27 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
28 * @license http://framework.zend.com/license/new-bsd New BSD License
30 interface Zend_Serializer_Adapter_AdapterInterface
35 * @param array|Zend_Config $opts Serializer options
38 public function __construct($opts = array());
41 * Set serializer options
43 * @param array|Zend_Config $opts Serializer options
44 * @return Zend_Serializer_Adapter_AdapterInterface
46 public function setOptions($opts);
49 * Set a serializer option
51 * @param string $name Option name
52 * @param mixed $value Option value
53 * @return Zend_Serializer_Adapter_AdapterInterface
55 public function setOption($name, $value);
58 * Get serializer options
62 public function getOptions();
65 * Get a serializer option
69 * @throws Zend_Serializer_Exception
71 public function getOption($name);
74 * Generates a storable representation of a value.
76 * @param mixed $value Data to serialize
77 * @param array $options Serialize options
79 * @throws Zend_Serializer_Exception
81 public function serialize($value, array $options = array());
84 * Creates a PHP value from a stored representation.
86 * @param string $serialized Serialized string
87 * @param array $options Unserialize options
89 * @throws Zend_Serializer_Exception
91 public function unserialize($serialized, array $options = array());