wikimedia/mediawiki-extensions-Wikibase

View on GitHub
lib/includes/Store/EntityTitleTextLookup.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Wikibase\Lib\Store;

use Wikibase\DataModel\Entity\EntityId;

/**
 * @license GPL-2.0-or-later
 */
interface EntityTitleTextLookup {

    /**
     * Returns the title text of the entity, prefixed with the namespace, e.g. "Property:P31"
     *
     * @param EntityId $id
     *
     * @return string|null
     */
    public function getPrefixedText( EntityId $id ): ?string;

}