Model/Sync/Catalog/Exporter.php
public function exportCatalog($storeId, $limit)
    {
        $connectorProducts = [];
        $products = $this->getProductsToExport($storeId, $limit);

        foreach ($products as $product) {
            $connectorProduct = $this->connectorProductFactory->create()
                ->setProduct($product);
            $connectorProducts[$product->getId()] = $connectorProduct->expose();
        }

        return $connectorProducts;
    }
public function exportCatalog($storeId, $limit)
    {
        $connectorProducts = [];
        $products = $this->getProductsToExport($storeId, $limit);

        foreach ($products as $product) {
            $connectorProduct = $this->connectorProductFactory->create()
                ->setProduct($product);
            $connectorProducts[$product->getId()] = $connectorProduct->expose();
        }

        return $connectorProducts;
    }
public function exportCatalog ( $ storeId , $ limit ) { $ connectorProducts = [ ] ; $ products = $ this -> getProductsToExport ( $ storeId , $ limit ) ; foreach ( $ products as $ product ) { $ connectorProduct = $ this -> connectorProductFactory -> create ( ) -> setProduct ( $ product ) ; $ connectorProducts [ $ product -> getId ( ) ] = $ connectorProduct -> expose ( ) ; } return $ connectorProducts ; }
Export catalog.

@param string|int|null $storeId
@param string|int $limit

@return array
Export catalog .