/** * Retrieve items collection object with stock filter * * @return \Magento\CatalogInventory\Model\Resource\Stock\Item\Collection */ public function getItemCollection() { return $this->_collectionFactory->create()->addStockFilter($this->getId()); }