. */ /** * Doctrine_Validator_Notnull * * @package Doctrine * @subpackage Validator * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen */ class Doctrine_Validator_Notnull extends Doctrine_Validator_Driver { /** * checks that given value isn't null * * @param mixed $value * @return boolean */ public function validate($value) { return ($value !== null); } }