public function Subscription::setPaymentMethodId in Commerce Recurring Framework 8
Sets the payment method ID.
Parameters
int $payment_method_id: The payment method ID.
Return value
$this
Overrides SubscriptionInterface::setPaymentMethodId
File
- src/
Entity/ Subscription.php, line 192
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function setPaymentMethodId($payment_method_id) {
$this
->set('payment_method', $payment_method_id);
return $this;
}