Model/ResourceModel/Review.php
public function getProductByIdAndStore($id, $storeId)
    {
        $product = $this->productFactory->create()
            ->getCollection()
            ->addIdFilter($id)
            ->setStoreId($storeId)
            ->addAttributeToSelect(
                ['product_url', 'name', 'store_id', 'small_image']
            )
            ->setPage(1, 1);

        return $product->getFirstItem();
    }
public function getProductByIdAndStore($id, $storeId)
    {
        $product = $this->productFactory->create()
            ->getCollection()
            ->addIdFilter($id)
            ->setStoreId($storeId)
            ->addAttributeToSelect(
                ['product_url', 'name', 'store_id', 'small_image']
            )
            ->setPage(1, 1);

        return $product->getFirstItem();
    }
public function getProductByIdAndStore ( $ id , $ storeId ) { $ product = $ this -> productFactory -> create ( ) -> getCollection ( ) -> addIdFilter ( $ id ) -> setStoreId ( $ storeId ) -> addAttributeToSelect ( [ 'product_url' , 'name' , 'store_id' , 'small_image' ] ) -> setPage ( 1 , 1 ) ; return $ product -> getFirstItem ( ) ; }
Get product by id and store.

@param int $id
@param int $storeId

@return mixed
Get product by id and store .