You are here

public function SubscriptionInterface::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

1 method overrides SubscriptionInterface::setUnitPrice()
Subscription::setUnitPrice in src/Entity/Subscription.php
Sets the subscription unit price.

File

src/Entity/SubscriptionInterface.php, line 218

Class

SubscriptionInterface
Defines the interface for subscriptions.

Namespace

Drupal\commerce_recurring\Entity

Code

public function setUnitPrice(Price $unit_price);