1 | <?php |
||
18 | class EntityIdLabelFormatter implements EntityIdFormatter { |
||
19 | |||
20 | /** |
||
21 | * @var LabelLookup |
||
22 | */ |
||
23 | private $labelLookup; |
||
24 | |||
25 | public function __construct( LabelLookup $labelLookup ) { |
||
28 | 4 | ||
29 | 4 | /** |
|
30 | 4 | * @see EntityIdFormatter::formatEntityId |
|
31 | * |
||
32 | * @param EntityId $entityId |
||
33 | * |
||
34 | * @return string Plain text |
||
35 | */ |
||
36 | public function formatEntityId( EntityId $entityId ) { |
||
45 | |||
46 | 3 | /** |
|
47 | * @param EntityId $entityId |
||
48 | * |
||
49 | * @return Term|null Null if no label was found or the entity does not exist |
||
50 | */ |
||
51 | protected function lookupEntityLabel( EntityId $entityId ) { |
||
58 | 4 | ||
59 | } |
||
60 |