You are here

function Payment::setLineItem in Payment 7

Set a line item.

Parameters

PaymentLineItem $line_item:

Return value

static

See also

Payment::getLineItems()

File

./payment.classes.inc, line 198
The API and related functions for executing and managing payments.

Class

Payment
A single payment. Contains all payment-specific data.

Code

function setLineItem(PaymentLineItem $line_item) {
  $this->line_items[$line_item->name] = $line_item;
  return $this;
}