Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Validator / ValidatorInterface.php
blobd234a1e664e4be88ff4875222513e30fac7c8e25
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Validator;
12 interface ValidatorInterface
14 /**
15 * Returns true if and only if $value meets the validation requirements
17 * If $value fails validation, then this method returns false, and
18 * getMessages() will return an array of messages that explain why the
19 * validation failed.
21 * @param mixed $value
22 * @return bool
23 * @throws Exception\RuntimeException If validation of $value is impossible
25 public function isValid($value);
27 /**
28 * Returns an array of messages that explain why the most recent isValid()
29 * call returned false. The array keys are validation failure message identifiers,
30 * and the array values are the corresponding human-readable message strings.
32 * If isValid() was never called or if the most recent isValid() call
33 * returned true, then this method returns an empty array.
35 * @return array
37 public function getMessages();