You are here

PriceListItemEvent.php in Commerce Pricelist 8.2

File

src/Event/PriceListItemEvent.php
View source
<?php

namespace Drupal\commerce_pricelist\Event;

use Drupal\commerce_pricelist\Entity\PriceListItemInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Defines the price list item event.
 *
 * @see \Drupal\commerce_pricelist\Event\PriceListEvents
 */
class PriceListItemEvent extends Event {

  /**
   * The price list item.
   *
   * @var \Drupal\commerce_pricelist\Entity\PriceListItemInterface
   */
  protected $priceListItem;

  /**
   * Constructs a new PriceListItemEvent object.
   *
   * @param \Drupal\commerce_pricelist\Entity\PriceListItemInterface $price_list_item
   *   The price list item.
   */
  public function __construct(PriceListItemInterface $price_list_item) {
    $this->priceListItem = $price_list_item;
  }

  /**
   * Gets the price list item.
   *
   * @return \Drupal\commerce_pricelist\Entity\PriceListItemInterface
   *   Gets the price list item.
   */
  public function getPriceListItem() {
    return $this->priceListItem;
  }

}

Classes

Namesort descending Description
PriceListItemEvent Defines the price list item event.