Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
TranslationVariable
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 4
20
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
 getDefinition
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getValue
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\PageTranslation;
5
6/**
7 * This class represents one translation variable in a translation unit.
8 *
9 * @author Niklas Laxström
10 * @license GPL-2.0-or-later
11 * @since 2021.03
12 */
13class TranslationVariable {
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}