You are here

public function AdjustmentTransformer::__construct in Commerce Core 8.2

Constructs a new AdjustmentTransformer object.

Parameters

\Drupal\commerce_order\AdjustmentTypeManager $adjustment_type_manager: The adjustment type manager.

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

File

modules/order/src/AdjustmentTransformer.php, line 32

Class

AdjustmentTransformer

Namespace

Drupal\commerce_order

Code

public function __construct(AdjustmentTypeManager $adjustment_type_manager, RounderInterface $rounder) {
  $this->adjustmentTypeManager = $adjustment_type_manager;
  $this->rounder = $rounder;
}