You are here

public function BillingSchedule::set in Commerce Recurring Framework 8

Sets the value of a property.

Parameters

string $property_name: The name of the property that should be set.

mixed $value: The value the property should be set to.

Return value

$this

Overrides ConfigEntityBase::set

File

src/Entity/BillingSchedule.php, line 308

Class

BillingSchedule
Defines the billing schedule entity class.

Namespace

Drupal\commerce_recurring\Entity

Code

public function set($property_name, $value) {

  // Invoke the setters to clear related properties.
  if ($property_name === 'plugin') {
    $this
      ->setPluginId($value);
  }
  elseif ($property_name === 'configuration') {
    $this
      ->setPluginConfiguration($value);
  }
  else {
    return parent::set($property_name, $value);
  }
}