lib/packages/wikibase/data-model-services/src/EntityId/PlainEntityIdFormatter.php
<?php
namespace Wikibase\DataModel\Services\EntityId;
use Wikibase\DataModel\Entity\EntityId;
/**
* @since 1.1
*
* @license GPL-2.0-or-later
* @author Jeroen De Dauw < jeroendedauw@gmail.com >
* @author Thiemo Kreuz
*/
class PlainEntityIdFormatter implements EntityIdFormatter {
/**
* @see EntityIdFormatter::formatEntityId
*
* @param EntityId $entityId
*
* @return string Plain text
*/
public function formatEntityId( EntityId $entityId ) {
return $entityId->getSerialization();
}
}