1
0
mirror of synced 2025-02-19 13:43:15 +03:00
doctrine2/classes/Validator/Notnull.class.php

17 lines
353 B
PHP
Raw Normal View History

2006-04-13 20:37:28 +00:00
<?php
class Doctrine_Validator_Notnull {
/**
* @param Doctrine_Record $record
* @param string $key
* @param mixed $value
* @return boolean
*/
public function validate(Doctrine_Record $record, $key, $value) {
2006-05-26 11:32:35 +00:00
if ($value === null)
return false;
return true;
2006-04-13 20:37:28 +00:00
}
}
?>