| Current File : /home/jvzmxxx/wiki1/extensions/Wikibase/view/src/EntityIdFormatterFactory.php |
<?php
namespace Wikibase\View;
use Wikibase\DataModel\Services\EntityId\EntityIdFormatter;
use Wikibase\DataModel\Services\Lookup\LabelDescriptionLookup;
/**
* A factory interface for generating EntityIdFormatters.
*
* @since 0.5
*
* @license GPL-2.0+
* @author Daniel Kinzler
*/
interface EntityIdFormatterFactory {
/**
* Returns the formatter's output format, as defined by the
* SnakFormatter::FORMAT_XXX constants.
*
* This allows callers to assert that the formatter returned by getEntityIdFormatter()
* will generate text in the desired format, applying the appropriate escaping.
*
* @see SnakFormatter::FORMAT_WIKITEXT
* @see SnakFormatter::FORMAT_HTML
*
* @return string
*/
public function getOutputFormat();
/**
* @param LabelDescriptionLookup $labelDescriptionLookup
*
* @return EntityIdFormatter
*/
public function getEntityIdFormatter( LabelDescriptionLookup $labelDescriptionLookup );
}