You are here

public function MinorUnitsConverter::__construct in Price 2.0.x

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

Constructs a new MinorUnitsConverter object.

Parameters

\Drupal\price\Repository\CurrencyRepositoryInterface $currency_repository: The currency repository.

File

src/MinorUnitsConverter.php, line 25

Class

MinorUnitsConverter
Default implementation of the minor units converter.

Namespace

Drupal\price

Code

public function __construct(CurrencyRepositoryInterface $currency_repository) {
  $this->currencyRepository = $currency_repository;
}