. */ /** * Doctrine_Resource_Params * * @author Konsta Vesterinen * @author Jonathan H. Wage * @package Doctrine * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @version $Revision$ * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 */ class Doctrine_Resource_Params { protected $_data = array(); public function __construct($array = null) { if ($array !== null) { foreach ($array as $key => $value) { $this->set($key, $value); } } } public function set($key, $value) { $this->_data[$key] = $value; } public function get($key) { return isset($this->_data[$key]) ? $this->_data[$key]:null; } public function has($key) { return isset($this->_data[$key]) ? true:false; } public function remove($key) { unset($this->_data[$key]); } public function getAll() { return $this->_data; } }