blob: aca19268b572e26919bbcb1a9fa8915cd88e15ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Translate\TranslatorSandbox;
use User;
interface TranslationStashWriter {
/**
* Adds a new translation to the stash. If the same key already exists, the
* previous translation and metadata will be replaced with the new one.
*/
public function addTranslation( StashedTranslation $item ): void;
/** Delete all stashed translations for the given user. */
public function deleteTranslations( User $user ): void;
}
class_alias( TranslationStashWriter::class, '\MediaWiki\Extensions\Translate\TranslationStashWriter' );
|