You are here

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
InvoiceItemEvent::$invoiceItem protected property The invoice item.
InvoiceItemEvent::getInvoiceItem public function Gets the invoice item.
InvoiceItemEvent::__construct public function Constructs a new InvoiceItemEvent.