. */ namespace Doctrine\ORM\Query; use Doctrine\Common\DoctrineException; /** * Doctrine_ORM_Query_AbstractResult * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.com * @since 2.0 * @version $Revision: 1393 $ * @author Guilherme Blanco * @author Konsta Vesterinen * @author Roman Borschel */ abstract class AbstractResult { /** * @var mixed $_data The actual data to be stored. Can be an array, a string or an integer. */ protected $_data; /** * @var array Enum params. */ protected $_enumParams = array(); /** * Returns the enum parameters. * * @return mixed Enum parameters. */ public function getEnumParams() { return $this->_enumParams; } /** * Returns this object in serialized format, revertable using fromCached*. * * @return string Serialized cached item. */ public function toCachedForm() { return serialize(array( $this->_data, $this->getQueryComponents(), $this->getTableAliasMap(), $this->getEnumParams() )); } }