Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\DataAccess\ReferenceFormatterFactory Class Reference

A factory for ReferenceFormatters. More...

Public Member Functions

 __construct (DataAccessSnakFormatterFactory $snakFormatterFactory, WellKnownReferenceProperties $properties, ?LoggerInterface $logger=null)
 
 newDataBridgeReferenceFormatter (MessageLocalizer $messageLocalizer, Language $language, UsageAccumulator $usageAccumulator)
 

Private Member Functions

 logIfPropertiesEmpty ()
 

Private Attributes

 $snakFormatterFactory
 
 $properties
 
 $logger
 

Detailed Description

A factory for ReferenceFormatters.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\DataAccess\ReferenceFormatterFactory::__construct ( DataAccessSnakFormatterFactory $snakFormatterFactory,
WellKnownReferenceProperties $properties,
?LoggerInterface $logger = null )

Member Function Documentation

◆ logIfPropertiesEmpty()

Wikibase\Client\DataAccess\ReferenceFormatterFactory::logIfPropertiesEmpty ( )
private

◆ newDataBridgeReferenceFormatter()

Wikibase\Client\DataAccess\ReferenceFormatterFactory::newDataBridgeReferenceFormatter ( MessageLocalizer $messageLocalizer,
Language $language,
UsageAccumulator $usageAccumulator )

Member Data Documentation

◆ $logger

Wikibase\Client\DataAccess\ReferenceFormatterFactory::$logger
private

◆ $properties

Wikibase\Client\DataAccess\ReferenceFormatterFactory::$properties
private

◆ $snakFormatterFactory

Wikibase\Client\DataAccess\ReferenceFormatterFactory::$snakFormatterFactory
private

The documentation for this class was generated from the following file: