You are here

public function Invoice::setBillingProfile in Commerce Invoice 8.2

Sets the billing profile.

Parameters

\Drupal\profile\Entity\ProfileInterface $profile: The billing profile.

Return value

$this

Overrides InvoiceInterface::setBillingProfile

File

src/Entity/Invoice.php, line 207

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function setBillingProfile(ProfileInterface $profile) {
  $this
    ->set('billing_profile', $profile);
  return $this;
}