private function getStockId($websiteId)
    {
        if (!isset($this->stockIdByWebsite[$websiteId])) {
            $stockId = $this->stockRegistry->getStock($websiteId)->getStockId();
            $this->stockIdByWebsite[$websiteId] = $stockId;
        }

        return $this->stockIdByWebsite[$websiteId];
    }
private function getStockId($websiteId)
    {
        if (!isset($this->stockIdByWebsite[$websiteId])) {
            $stockId = $this->stockRegistry->getStock($websiteId)->getStockId();
            $this->stockIdByWebsite[$websiteId] = $stockId;
        }

        return $this->stockIdByWebsite[$websiteId];
    }
private function getStockId ( $ websiteId ) { if ( ! isset ( $ this -> stockIdByWebsite [ $ websiteId ] ) ) { $ stockId = $ this -> stockRegistry -> getStock ( $ websiteId ) -> getStockId ( ) ; $ this -> stockIdByWebsite [ $ websiteId ] = $ stockId ; } return $ this -> stockIdByWebsite [ $ websiteId ] ; }
Retrieve stock_id by store

@param int $websiteId The website Id

@return int
Retrieve stock_id by store