Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
TranslationVariable.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\PageTranslation;
5
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}
This class represents one translation variable in a translation unit.