DownloadBackup
in package
Use case for generating and downloading LWT backup.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : never
- Execute the use case - generate and output backup file.
- generate() : array{filename: string, content: string}
- Generate backup content without outputting.
Properties
$repository
private
BackupRepositoryInterface
$repository
Methods
__construct()
Constructor.
public
__construct(BackupRepositoryInterface $repository) : mixed
Parameters
- $repository : BackupRepositoryInterface
-
Backup repository
execute()
Execute the use case - generate and output backup file.
public
execute() : never
Return values
never —Outputs file and terminates
generate()
Generate backup content without outputting.
public
generate() : array{filename: string, content: string}
Useful for testing or alternative output methods.
Return values
array{filename: string, content: string} —Backup data