2026-07-06 03:42:24 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Modules\Core\MigrateImport;
|
|
|
|
|
|
|
|
|
|
class ImportSpec
|
|
|
|
|
{
|
2026-09-24 21:41:11 +03:00
|
|
|
/**
|
|
|
|
|
* @param ?string $locale The language the export file's own text
|
|
|
|
|
* (product titles, descriptions, option names, ...) is actually
|
|
|
|
|
* written in — asked of the operator at import time (see
|
|
|
|
|
* Command\MigrateImportCommand), since an export has no reliable
|
|
|
|
|
* way to declare its own language and it does not necessarily match
|
|
|
|
|
* this store's Lunar\Models\Language::getDefault(). Null for a
|
|
|
|
|
* source/type this doesn't apply to (e.g. an API-based import with
|
|
|
|
|
* no free-text file to attribute a single language to).
|
|
|
|
|
*/
|
2026-07-06 03:42:24 +03:00
|
|
|
public function __construct(
|
|
|
|
|
public readonly string $source,
|
|
|
|
|
public readonly string $type,
|
|
|
|
|
public readonly ?string $filePath = null,
|
|
|
|
|
public readonly ?array $credentials = null,
|
2026-09-24 21:41:11 +03:00
|
|
|
public readonly ?string $locale = null,
|
2026-07-06 03:42:24 +03:00
|
|
|
) {
|
|
|
|
|
}
|
|
|
|
|
}
|