/ */ interface ValidateInterface extends \Zend\Validator\ValidatorInterface { } } else { /** * Define a interface compatible with Zend_Validate. * * @copyright 2011 Perforce Software. All rights reserved. * @license Please see LICENSE.txt in top-level folder of this distribution. * @version / */ interface ValidateInterface { /** * Check if value meets validation requirements. * * If the given value is invalid, this method will return false * and getMessages() will provide an array of errors. * * @param mixed $value the value to validate * @return bool true if the value is valid; false otherwise. */ public function isValid($value); /** * Get errors for the most recent isValid() check. * * @return array list of error messages. */ public function getMessages(); } }