BackupPayloadUpgradeService
in package
Applies ordered object-level upgrades to decoded backup payloads.
Table of Contents
Properties
- $migrators : array<string|int, mixed>|null
Methods
- __construct() : mixed
-
upgrade()
: array{payload: array
, stats: array } - detectSourceVersion() : string
- migrators() : array<int, BackupPayloadMigratorInterface>
- reportProgress() : void
Properties
$migrators
private
array<string|int, mixed>|null
$migrators
= null
Methods
__construct()
public
__construct([array<int, BackupPayloadMigratorInterface>|null $migrators = null ]) : mixed
Parameters
- $migrators : array<int, BackupPayloadMigratorInterface>|null = null
upgrade()
public
upgrade(array<string, mixed> $payload[, callable(array<string, mixed>): void|null $progressReporter = null ]) : array{payload: array, stats: array}
Parameters
- $payload : array<string, mixed>
-
Decoded backup payload.
- $progressReporter : callable(array<string, mixed>): void|null = null
Return values
array{payload: arraydetectSourceVersion()
private
detectSourceVersion(array<string, mixed> $payload) : string
Parameters
- $payload : array<string, mixed>
-
Decoded backup payload.
Return values
stringmigrators()
private
migrators() : array<int, BackupPayloadMigratorInterface>
Return values
array<int, BackupPayloadMigratorInterface>reportProgress()
private
reportProgress(callable(array<string, mixed>): void|null $progressReporter, string $phase, string $message[, array<string, mixed> $context = [] ]) : void
Parameters
- $progressReporter : callable(array<string, mixed>): void|null
- $phase : string
- $message : string
- $context : array<string, mixed> = []