1 | <?php |
||
16 | class LanguageLabelDescriptionLookup implements LabelDescriptionLookup { |
||
17 | |||
18 | /** |
||
19 | * @var TermLookup |
||
20 | */ |
||
21 | private $termLookup; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $languageCode; |
||
27 | |||
28 | /** |
||
29 | * @param TermLookup $termLookup |
||
30 | * @param string $languageCode |
||
31 | */ |
||
32 | 4 | public function __construct( TermLookup $termLookup, $languageCode ) { |
|
36 | |||
37 | /** |
||
38 | * @param EntityId $entityId |
||
39 | * |
||
40 | * @throws LabelDescriptionLookupException |
||
41 | * @return Term|null |
||
42 | */ |
||
43 | 2 | public function getLabel( EntityId $entityId ) { |
|
56 | |||
57 | /** |
||
58 | * @param EntityId $entityId |
||
59 | * |
||
60 | * @throws LabelDescriptionLookupException |
||
61 | * @return Term|null |
||
62 | */ |
||
63 | 2 | public function getDescription( EntityId $entityId ) { |
|
76 | |||
77 | } |
||
78 |