Model/Sync/Catalog/CatalogSyncFactory.php
public function create()
    {
        $syncLevel = $this->scopeConfig->getValue(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_SYNC_CATALOG_VALUES
        );

        if ($syncLevel == self::SYNC_CATALOG_DEFAULT_LEVEL) {
            return $this->defaultLevelCatalogSyncerFactory->create();
        } elseif ($syncLevel == self::SYNC_CATALOG_STORE_LEVEL) {
            return $this->storeLevelCatalogSyncerFactory->create();
        }

        return null;
    }
public function create()
    {
        $syncLevel = $this->scopeConfig->getValue(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_SYNC_CATALOG_VALUES
        );

        if ($syncLevel == self::SYNC_CATALOG_DEFAULT_LEVEL) {
            return $this->defaultLevelCatalogSyncerFactory->create();
        } elseif ($syncLevel == self::SYNC_CATALOG_STORE_LEVEL) {
            return $this->storeLevelCatalogSyncerFactory->create();
        }

        return null;
    }
public function create ( ) { $ syncLevel = $ this -> scopeConfig -> getValue ( \ Dotdigitalgroup \ Email \ Helper \ Config :: XML_PATH_CONNECTOR_SYNC_CATALOG_VALUES ) ; if ( $ syncLevel == self :: SYNC_CATALOG_DEFAULT_LEVEL ) { return $ this -> defaultLevelCatalogSyncerFactory -> create ( ) ; } elseif ( $ syncLevel == self :: SYNC_CATALOG_STORE_LEVEL ) { return $ this -> storeLevelCatalogSyncerFactory -> create ( ) ; } return null ; }
Create syncer class instance depending on configuration

@return \Dotdigitalgroup\Email\Model\Sync\Catalog\CatalogSyncerInterface|null
Create syncer class instance depending on configuration