Translate extension for MediaWiki
Loading...
Searching...
No Matches
TranslationVariable.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\PageTranslation;
5
13
class
TranslationVariable
{
15
private
$definition;
17
private
$name;
19
private
$value;
20
21
public
function
__construct(
string
$definition,
string
$name,
string
$value ) {
22
$this->definition = $definition;
23
$this->name = $name;
24
$this->value = $value;
25
}
26
27
public
function
getDefinition():
string
{
28
return
$this->definition;
29
}
30
31
public
function
getName():
string
{
32
return
$this->name;
33
}
34
35
public
function
getValue():
string
{
36
return
$this->value;
37
}
38
}
MediaWiki\Extension\Translate\PageTranslation\TranslationVariable
This class represents one translation variable in a translation unit.
Definition
TranslationVariable.php:13
src
PageTranslation
TranslationVariable.php
Generated by
1.10.0