1 | <?php |
||
15 | class TermFallback extends Term { |
||
16 | |||
17 | /** |
||
18 | * @var string Actual language of the text. |
||
19 | */ |
||
20 | private $actualLanguageCode; |
||
21 | |||
22 | /** |
||
23 | * @var string|null Source language if the text is a transliteration. |
||
24 | */ |
||
25 | private $sourceLanguageCode; |
||
26 | |||
27 | /** |
||
28 | * @param string $requestedLanguageCode Requested language, not necessarily the language of the |
||
29 | * text. |
||
30 | * @param string $text |
||
31 | * @param string $actualLanguageCode Actual language of the text. |
||
32 | * @param string|null $sourceLanguageCode Source language if the text is a transliteration. |
||
33 | * |
||
34 | * @throws InvalidArgumentException |
||
35 | */ |
||
36 | public function __construct( $requestedLanguageCode, $text, $actualLanguageCode, $sourceLanguageCode ) { |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getActualLanguageCode() { |
||
59 | |||
60 | /** |
||
61 | * @return string|null |
||
62 | */ |
||
63 | public function getSourceLanguageCode() { |
||
66 | |||
67 | /** |
||
68 | * |
||
69 | * @param mixed $target |
||
70 | * |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function equals( $target ) { |
||
83 | |||
84 | } |
||
85 |