diff options
Diffstat (limited to 'MLEB/Translate/src/Validation/Validator.php')
-rw-r--r-- | MLEB/Translate/src/Validation/Validator.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/MLEB/Translate/src/Validation/Validator.php b/MLEB/Translate/src/Validation/Validator.php new file mode 100644 index 00000000..c89f349b --- /dev/null +++ b/MLEB/Translate/src/Validation/Validator.php @@ -0,0 +1,23 @@ +<?php +/** + * Interface to be implemented by Validators. + * + * @file + * @author Abijeet Patro + * @license GPL-2.0-or-later + */ + +namespace MediaWiki\Extension\Translate\Validation; + +use TMessage; + +/** + * Interface class built to be implement by validators + * @since 2019.06 + * @deprecated since 2020.06 + */ +interface Validator { + public function validate( TMessage $message, $code, array &$notices ); +} + +class_alias( Validator::class, '\MediaWiki\Extensions\Translate\Validator' ); |