| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class EntityIdLabelFormatter implements EntityIdFormatter { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var LabelLookup |
||
| 22 | */ |
||
| 23 | private $labelLookup; |
||
| 24 | |||
| 25 | public function __construct( LabelLookup $labelLookup ) { |
||
| 27 | } |
||
| 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 ) { |
||
| 44 | } |
||
| 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 ) { |
||
| 60 |