You are here

public function OrderTotalSummary::__construct in Commerce Core 8.2

Same name in this branch
  1. 8.2 modules/order/src/OrderTotalSummary.php \Drupal\commerce_order\OrderTotalSummary::__construct()
  2. 8.2 modules/order/src/Plugin/Field/FieldFormatter/OrderTotalSummary.php \Drupal\commerce_order\Plugin\Field\FieldFormatter\OrderTotalSummary::__construct()

Constructs a new OrderTotalSummary object.

Parameters

\Drupal\commerce_order\AdjustmentTransformerInterface $adjustment_transformer: The adjustment transformer.

File

modules/order/src/OrderTotalSummary.php, line 22

Class

OrderTotalSummary

Namespace

Drupal\commerce_order

Code

public function __construct(AdjustmentTransformerInterface $adjustment_transformer) {
  $this->adjustmentTransformer = $adjustment_transformer;
}