Skip to content
docsv0.1.1

BackupReport

The outcome of one {@see BackupManager::run()} call: the {@see BackupManifest} it produced (or attempted to), whether the run succeeded, and — when it did not — why. `hasFindings()` mirrors `!$ok`, so a host command exits non-zero on a failed backup the same way it would on a secret or a permission violation ({@see ReportInterface}).

BackupReport::__construct()

public function __construct(Milpa\Ops\Backup\BackupManifest $manifest, bool $ok, ?string $error = null):

Parameters

Parameters of __construct()
NameTypeDescription
$manifestMilpa\Ops\Backup\BackupManifest
$okbool
$error?string

BackupReport::hasFindings()

public function hasFindings(): bool

True cuando el respaldo NO se completó — es lo único que exige acción de quien lo lea.

BackupReport::toArray()

public function toArray(): array

El respaldo como dato: el manifiesto, si salió bien, y el error si lo hubo.