summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/src/MessageValidator/Validator.php')
-rw-r--r--MLEB/Translate/src/MessageValidator/Validator.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/MLEB/Translate/src/MessageValidator/Validator.php b/MLEB/Translate/src/MessageValidator/Validator.php
new file mode 100644
index 00000000..27325703
--- /dev/null
+++ b/MLEB/Translate/src/MessageValidator/Validator.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Interface to be implemented by Validators.
+ *
+ * @file
+ * @author Abijeet Patro
+ * @license GPL-2.0-or-later
+ */
+
+namespace MediaWiki\Extensions\Translate\MessageValidator;
+
+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 );
+}