You are here

public function NumberFormatterFactory::__construct in Price 3.x

Same name and namespace in other branches
  1. 8 src/NumberFormatterFactory.php \Drupal\price\NumberFormatterFactory::__construct()
  2. 3.0.x src/NumberFormatterFactory.php \Drupal\price\NumberFormatterFactory::__construct()

Constructs a new NumberFormatterFactory object.

Parameters

\CommerceGuys\Intl\Formatter\CurrencyFormatterInterface $currency_formatter: The currency formatter.

File

src/NumberFormatterFactory.php, line 29

Class

NumberFormatterFactory
Defines the NumberFormatter factory.

Namespace

Drupal\price

Code

public function __construct(CurrencyFormatterInterface $currency_formatter) {
  $this->currencyFormatter = $currency_formatter;
}