1 <?php
2
3 namespace Brickrouge;
4
5 use ICanBoogie\Errors;
6
7 interface Validator
8 {
9 /**
10 * Validates the value provided.
11 *
12 * @param mixed $value The value to validate.
13 * @param \ICanBoogie\Errors $errors Used to collect error messages.
14 *
15 * @return boolean true if the value is valid, false otherwise.
16 */
17 public function validate($value, Errors $errors);
18 }