You are here

interface StockServiceInterface in Commerce Stock 8

Defines a common interface for stock checking.

Hierarchy

Expanded class hierarchy of StockServiceInterface

All classes that implement StockServiceInterface

1 file declares its use of StockServiceInterface
LocalStockService.php in modules/local_storage/src/LocalStockService.php

File

src/StockServiceInterface.php, line 8

Namespace

Drupal\commerce_stock
View source
interface StockServiceInterface {

  /**
   * Gets the name of the service.
   */
  public function getName();

  /**
   * Gets the id of the service.
   */
  public function getId();

  /**
   * Gets the stock checker.
   *
   * @return \Drupal\commerce_stock\StockCheckInterface
   *   The stock checker.
   */
  public function getStockChecker();

  /**
   * Gets the stock updater.
   *
   * @return \Drupal\commerce_stock\StockUpdateInterface
   *   The stock updater.
   */
  public function getStockUpdater();

  /**
   * Gets the stock Configuration.
   *
   * @return \Drupal\commerce_stock\StockServiceConfigInterface
   *   The stock Configuration.
   */
  public function getConfiguration();

}

Members

Namesort descending Modifiers Type Description Overrides
StockServiceInterface::getConfiguration public function Gets the stock Configuration. 2
StockServiceInterface::getId public function Gets the id of the service. 2
StockServiceInterface::getName public function Gets the name of the service. 2
StockServiceInterface::getStockChecker public function Gets the stock checker. 2
StockServiceInterface::getStockUpdater public function Gets the stock updater. 2