You are here

public function OrderPromotionOfferBase::__construct in Commerce Core 8.2

Constructs a new OrderPromotionOfferBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The pluginId for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

\Drupal\commerce_order\PriceSplitterInterface $splitter: The splitter.

Overrides PromotionOfferBase::__construct

1 call to OrderPromotionOfferBase::__construct()
BuyXGetY::__construct in modules/promotion/src/Plugin/Commerce/PromotionOffer/BuyXGetY.php
Constructs a new BuyXGetY object.
1 method overrides OrderPromotionOfferBase::__construct()
BuyXGetY::__construct in modules/promotion/src/Plugin/Commerce/PromotionOffer/BuyXGetY.php
Constructs a new BuyXGetY object.

File

modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderPromotionOfferBase.php, line 35

Class

OrderPromotionOfferBase
Provides the base class for order offers.

Namespace

Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RounderInterface $rounder, PriceSplitterInterface $splitter) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $rounder);
  $this->splitter = $splitter;
}