You are here

public function StockAvailabilityChecker::__construct in Commerce Stock 8

Constructs a new StockAvailabilityChecker object.

Parameters

\Drupal\commerce_stock\StockServiceManagerInterface $stock_service_manager: The stock service manager.

File

src/StockAvailabilityChecker.php, line 32

Class

StockAvailabilityChecker
The entry point for availability checking through Commerce Stock.

Namespace

Drupal\commerce_stock

Code

public function __construct(StockServiceManagerInterface $stock_service_manager) {
  $this->stockServiceManager = $stock_service_manager;
}