You are here

public function Proportional::__construct in Commerce Recurring Framework 8

Constructs a new Proportional object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

Overrides ProraterBase::__construct

File

src/Plugin/Commerce/Prorater/Proportional.php, line 41

Class

Proportional
Provides a proportional prorater.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\Prorater

Code

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