source, $spec->type]) { ['shopify', 'export'] => new ShopifyExportImporter, // ["shopify", "api"] => new ShopifyApiImporter(), ['judgeme', 'export'] => new JudgeMeExportImporter, // ["woocommerce", "export"] => new WooCommerceExportImporter(), // ["woocommerce", "api"] => new WooCommerceApiImporter(), default => throw new \InvalidArgumentException( "No importer available for source \"{$spec->source}\" with type \"{$spec->type}\".", ), }; } }