class InvoiceItemEvent in Commerce Invoice 8.2
Defines the invoice item event.
Hierarchy
- class \Drupal\commerce_invoice\Event\InvoiceItemEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of InvoiceItemEvent
File
- src/
Event/ InvoiceItemEvent.php, line 11
Namespace
Drupal\commerce_invoice\EventView source
class InvoiceItemEvent extends Event {
/**
* The invoice item.
*
* @var \Drupal\commerce_invoice\Entity\InvoiceItemInterface
*/
protected $invoiceItem;
/**
* Constructs a new InvoiceItemEvent.
*
* @param \Drupal\commerce_invoice\Entity\InvoiceItemInterface $invoice_item
* The invoice item.
*/
public function __construct(InvoiceItemInterface $invoice_item) {
$this->invoiceItem = $invoice_item;
}
/**
* Gets the invoice item.
*
* @return \Drupal\commerce_invoice\Entity\InvoiceItemInterface
* The invoice item.
*/
public function getInvoiceItem() {
return $this->invoiceItem;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InvoiceItemEvent:: |
protected | property | The invoice item. | |
InvoiceItemEvent:: |
public | function | Gets the invoice item. | |
InvoiceItemEvent:: |
public | function | Constructs a new InvoiceItemEvent. |