Translate extension for MediaWiki
Loading...
Searching...
No Matches
StashedTranslation.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\TranslatorSandbox;
5
6
use Title;
7
use User;
8
16
class
StashedTranslation
{
18
protected
$user;
20
protected
$title;
22
protected
$value;
24
protected
$metadata;
25
26
public
function
__construct( User $user, Title $title,
string
$value, array $metadata =
null
) {
27
$this->user = $user;
28
$this->title = $title;
29
$this->value = $value;
30
$this->metadata = $metadata;
31
}
32
33
public
function
getUser(): User {
34
return
$this->user;
35
}
36
37
public
function
getTitle(): Title {
38
return
$this->title;
39
}
40
41
public
function
getValue():
string
{
42
return
$this->value;
43
}
44
45
public
function
getMetadata(): ?array {
46
return
$this->metadata;
47
}
48
}
MediaWiki\Extension\Translate\TranslatorSandbox\StashedTranslation
Value object for stashed translation which you can construct.
Definition
StashedTranslation.php:16
src
TranslatorSandbox
StashedTranslation.php
Generated by
1.10.0