summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/DataValues/ValueValidators/ConstraintValueValidator.php
blob: bddb790164bbcd8ff5bcf7ab0293956927a16bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace SMW\DataValues\ValueValidators;

/**
 * @license GNU GPL v2+
 * @since 2.4
 *
 * @author mwjames
 */
interface ConstraintValueValidator {

	/**
	 * @since 2.4
	 *
	 * @param DataValue $dataValue
	 */
	public function validate( $dataValue );

	/**
	 * @since 2.4
	 *
	 * @return boolean
	 */
	public function hasConstraintViolation();

}