Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
LanguageAwareText | |
0.00% |
0 / 6 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
getWikitext | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getLanguageCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getLanguageDirection | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\MassMessage; |
5 | |
6 | /* |
7 | * @author Niklas Laxström |
8 | * @license GPL-2.0-or-later |
9 | */ |
10 | class LanguageAwareText { |
11 | /** @var string */ |
12 | private $wikitext; |
13 | /** @var string */ |
14 | private $languageCode; |
15 | /** @var string */ |
16 | private $languageDirection; |
17 | |
18 | /** |
19 | * @param string $wikitext |
20 | * @param string $languageCode |
21 | * @param string $languageDirection |
22 | */ |
23 | public function __construct( |
24 | string $wikitext, |
25 | string $languageCode, |
26 | string $languageDirection |
27 | ) { |
28 | $this->wikitext = $wikitext; |
29 | $this->languageCode = $languageCode; |
30 | $this->languageDirection = $languageDirection; |
31 | } |
32 | |
33 | /** @return string */ |
34 | public function getWikitext(): string { |
35 | return $this->wikitext; |
36 | } |
37 | |
38 | /** @return string */ |
39 | public function getLanguageCode(): string { |
40 | return $this->languageCode; |
41 | } |
42 | |
43 | /** @return string */ |
44 | public function getLanguageDirection(): string { |
45 | return $this->languageDirection; |
46 | } |
47 | } |