StockLocationEvent.php in Commerce Stock 8
Namespace
Drupal\commerce_stock_local\EventFile
modules/local_storage/src/Event/StockLocationEvent.phpView source
<?php
namespace Drupal\commerce_stock_local\Event;
use Drupal\commerce_stock_local\Entity\LocalStockLocationInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Defines the stock location event.
*
* @see \Drupal\commerce_stock_local\Event\LocalStockTransactionEvents
*/
class StockLocationEvent extends Event {
/**
* The stock location.
*
* @var \Drupal\commerce_stock_local\Entity\LocalStockLocationInterface
* The local stock location.
*/
protected $stockLocation;
/**
* Constructs a new stock location event.
*
* @param \Drupal\commerce_stock_local\Entity\LocalStockLocationInterface $stock_location
* The local stock location.
*/
public function __construct(LocalStockLocationInterface $stock_location) {
$this->stockLocation = $stock_location;
}
/**
* Gets the stock location.
*
* @return \Drupal\commerce_stock_local\Entity\LocalStockLocationInterface
* The local stock location.
*/
public function getStockLocation() {
return $this->stockLocation;
}
}
Classes
Name![]() |
Description |
---|---|
StockLocationEvent | Defines the stock location event. |