You are here

public function TaxOrderProcessor::__construct in Commerce Core 8.2

Constructs a new TaxOrderProcessor object.

Parameters

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

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

\Drupal\commerce_tax\StoreTaxInterface $store_tax: The store tax.

File

modules/tax/src/TaxOrderProcessor.php, line 47

Class

TaxOrderProcessor
Applies taxes to orders during the order refresh process.

Namespace

Drupal\commerce_tax

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RounderInterface $rounder, StoreTaxInterface $store_tax) {
  $this->entityTypeManager = $entity_type_manager;
  $this->rounder = $rounder;
  $this->storeTax = $store_tax;
}