diff options
Diffstat (limited to 'MLEB/Translate/src/TranslatorSandbox/TranslationStashReader.php')
-rw-r--r-- | MLEB/Translate/src/TranslatorSandbox/TranslationStashReader.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/MLEB/Translate/src/TranslatorSandbox/TranslationStashReader.php b/MLEB/Translate/src/TranslatorSandbox/TranslationStashReader.php new file mode 100644 index 00000000..e9e041e0 --- /dev/null +++ b/MLEB/Translate/src/TranslatorSandbox/TranslationStashReader.php @@ -0,0 +1,22 @@ +<?php +declare( strict_types = 1 ); + +namespace MediaWiki\Extension\Translate\TranslatorSandbox; + +use User; + +/* + * @author Niklas Laxström + * @license GPL-2.0-or-later + * @since 2020.11 + */ +interface TranslationStashReader { + /** + * Gets all stashed translations for the given user. + * + * @return StashedTranslation[] + */ + public function getTranslations( User $user ): array; +} + +class_alias( TranslationStashReader::class, '\MediaWiki\Extensions\Translate\TranslationStashReader' ); |