ValidateType.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
11 namespace wcmf\lib\validation;
12 
13 /**
14  * ValidateType defines the interface for all validator classes.
15  *
16  * @author ingo herwig <ingo@wemove.com>
17  */
18 interface ValidateType {
19 
20  /**
21  * Validate a given value. The options format is type specific.
22  * @param $value The value to validate
23  * @param $options Optional implementation specific options passed as an associative array
24  * @param $context An associative array describing the validation context (optional)
25  * @return Boolean
26  */
27  public function validate($value, $options=null, $context=null);
28 }
29 ?>
validate($value, $options=null, $context=null)
Validate a given value.
ValidateType defines the interface for all validator classes.