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