You are here

public function Rounder::__construct in Commerce Core 8.2

Constructs a new Rounder object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

modules/price/src/Rounder.php, line 22

Class

Rounder

Namespace

Drupal\commerce_price

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->currencyStorage = $entity_type_manager
    ->getStorage('commerce_currency');
}