You are here

public function Invoice::setPaymentMethod in Commerce Invoice 8.2

Sets the payment method.

Parameters

string $payment_method: The payment method.

Return value

$this

Overrides InvoiceInterface::setPaymentMethod

File

src/Entity/Invoice.php, line 369

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function setPaymentMethod($payment_method) {
  $this
    ->set('payment_method', $payment_method);
  return $this;
}