1 | <?php |
||
16 | class StockStateProvider extends \Magento\CatalogInventory\Model\StockStateProvider |
||
17 | { |
||
18 | /** |
||
19 | * @var StockbaseStockManagement |
||
20 | */ |
||
21 | private $stockbaseStockManagement; |
||
22 | /** |
||
23 | * @var ObjectManagerInterface |
||
24 | */ |
||
25 | private $objectManager; |
||
26 | |||
27 | /** |
||
28 | * @param ObjectManagerInterface $objectManager |
||
29 | * @param MathDivision $mathDivision |
||
30 | * @param FormatInterface $localeFormat |
||
31 | * @param ObjectFactory $objectFactory |
||
32 | * @param ProductFactory $productFactory |
||
33 | * @param bool $qtyCheckApplicable |
||
34 | */ |
||
35 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function verifyStock(StockItemInterface $stockItem) |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function checkQuoteItemQty(StockItemInterface $stockItem, $qty, $summaryQty, $origQty = 0) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function checkQty(StockItemInterface $stockItem, $qty) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getStockQty(StockItemInterface $stockItem) |
||
78 | |||
79 | protected function getStockbaseStockManagement() |
||
88 | |||
89 | protected function ensureStockbaseStockItem(StockItemInterface $stockItem) |
||
98 | } |
||
99 |