summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/src/PageTranslation/TestingParsingPlaceholderFactory.php')
-rw-r--r--MLEB/Translate/src/PageTranslation/TestingParsingPlaceholderFactory.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/MLEB/Translate/src/PageTranslation/TestingParsingPlaceholderFactory.php b/MLEB/Translate/src/PageTranslation/TestingParsingPlaceholderFactory.php
new file mode 100644
index 00000000..9c914d18
--- /dev/null
+++ b/MLEB/Translate/src/PageTranslation/TestingParsingPlaceholderFactory.php
@@ -0,0 +1,24 @@
+<?php
+declare( strict_types = 1 );
+
+namespace MediaWiki\Extension\Translate\PageTranslation;
+
+use MediaWiki\Extension\Translate\Utilities\ParsingPlaceholderFactory;
+
+/**
+ * @author Niklas Laxström
+ * @license GPL-2.0-or-later
+ * @since 2020.08
+ */
+class TestingParsingPlaceholderFactory extends ParsingPlaceholderFactory {
+ private $i = 0;
+
+ public function make(): string {
+ return '<' . $this->i++ . '>';
+ }
+}
+
+class_alias(
+ TestingParsingPlaceholderFactory::class,
+ '\MediaWiki\Extensions\Translate\TestingParsingPlaceholderFactory'
+);