You are here

public function Subscription::setUnitPrice in Commerce Recurring Framework 8

Sets the subscription unit price.

Parameters

\Drupal\commerce_price\Price $unit_price: The subscription unit price.

Return value

$this

Overrides SubscriptionInterface::setUnitPrice

File

src/Entity/Subscription.php, line 268

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function setUnitPrice(Price $unit_price) {
  $this
    ->set('unit_price', $unit_price);
  return $this;
}