interface StockServiceInterface in Commerce Stock 8
Defines a common interface for stock checking.
Hierarchy
- interface \Drupal\commerce_stock\StockServiceInterface
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_stockView 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
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| StockServiceInterface:: | public | function | Gets the stock Configuration. | 2 | 
| StockServiceInterface:: | public | function | Gets the id of the service. | 2 | 
| StockServiceInterface:: | public | function | Gets the name of the service. | 2 | 
| StockServiceInterface:: | public | function | Gets the stock checker. | 2 | 
| StockServiceInterface:: | public | function | Gets the stock updater. | 2 | 
