public function MinorUnitsConverter::__construct in Price 2.0.x
Same name and namespace in other branches
- 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\priceCode
public function __construct(CurrencyRepositoryInterface $currency_repository) {
$this->currencyRepository = $currency_repository;
}