summaryrefslogtreecommitdiff
blob: c5958af6bb17bb7f5d33e96b8a3e69d9651b371c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare( strict_types = 1 );

namespace MediaWiki\Extension\Translate\PageTranslation;

/**
 * This class represents one translation variable in a translation unit.
 *
 * @author Niklas Laxström
 * @license GPL-2.0-or-later
 * @since 2021.03
 */
class TranslationVariable {
	/** @var string */
	private $definition;
	/** @var string */
	private $name;
	/** @var string */
	private $value;

	public function __construct( string $definition, string $name, string $value ) {
		$this->definition = $definition;
		$this->name = $name;
		$this->value = $value;
	}

	public function getDefinition(): string {
		return $this->definition;
	}

	public function getName(): string {
		return $this->name;
	}

	public function getValue(): string {
		return $this->value;
	}
}