. */ /** * Doctrine_Null * * Simple empty class representing a null value * used for extra fast null value testing with isset() rather than array_key_exists() * * @package Doctrine * @subpackage Null * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.org * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen */ final class Doctrine_Null { private static $_instance; public function __construct() {} public static function getInstance() { if (is_null(self::$_instance)) { self::$_instance = new Doctrine_Null(); } return self::$_instance; } public function exists() { return false; } public function __toString() { return ''; } }