You are here

public function PriceSplitter::__construct in Commerce Core 8.2

Constructs a new PriceSplitter object.

Parameters

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

\Drupal\commerce_price\RounderInterface $rounder: The rounder.

File

modules/order/src/PriceSplitter.php, line 35

Class

PriceSplitter

Namespace

Drupal\commerce_order

Code

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