BackupManifest
A record of one completed backup: which run (`id`/`createdAt`), where the database dump and storage archive landed, and their sizes. {@see BackupManager} (Task 7) produces these; hosts persist/list them via `toArray()`/`fromArray()`.
BackupManifest::__construct()
public function __construct(string $id, string $createdAt, string $dbFile, string $storageFile, int $dbBytes, int $storageBytes):Parameters
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $createdAt | string | |
| $dbFile | string | |
| $storageFile | string | |
| $dbBytes | int | |
| $storageBytes | int |
BackupManifest::toArray()
public function toArray(): arrayEl manifiesto como dato plano, listo para escribirse junto al respaldo.
BackupManifest::fromArray()
public static function fromArray(array $data): selfReconstruye el manifiesto de un respaldo ya escrito. Es la mitad que permite restaurar: sin ella, un respaldo es un archivo que nadie sabe interpretar.
Parameters
| Name | Type | Description |
|---|---|---|
| $data | array{id: string, createdAt: string, dbFile: string, storageFile: string, dbBytes: int, storageBytes: int} |