PHP Class Vinkla\Backup\Backup

Author: Vincent Klaiber ([email protected])
Datei anzeigen Open project: vinkla/backup

Protected Properties

Property Type Description
$config Illuminate\Contracts\Config\Repository The config repository.
$executor Zenstruck\Backup\Executor The executor instance.
$profile string The backup profile.
$registry Zenstruck\Backup\ProfileRegistry The profile registry.

Public Methods

Method Description
__construct ( Illuminate\Contracts\Config\Repository $config, Zenstruck\Backup\ProfileRegistry $registry, Zenstruck\Backup\Executor $executor ) : void Create a new backup instance.
getProfile ( ) : string Get the backup profile.
profile ( string $profile ) : self Set the backup profile.
run ( boolean $clear = false ) : void Execute the backup.
setProfile ( string $profile ) : void Set the backup profile.

Method Details

__construct() public method

Create a new backup instance.
public __construct ( Illuminate\Contracts\Config\Repository $config, Zenstruck\Backup\ProfileRegistry $registry, Zenstruck\Backup\Executor $executor ) : void
$config Illuminate\Contracts\Config\Repository
$registry Zenstruck\Backup\ProfileRegistry
$executor Zenstruck\Backup\Executor
return void

getProfile() public method

Get the backup profile.
public getProfile ( ) : string
return string

profile() public method

Set the backup profile.
public profile ( string $profile ) : self
$profile string
return self

run() public method

Execute the backup.
public run ( boolean $clear = false ) : void
$clear boolean
return void

setProfile() public method

Set the backup profile.
public setProfile ( string $profile ) : void
$profile string
return void

Property Details

$config protected_oe property

The config repository.
protected Repository,Illuminate\Contracts\Config $config
return Illuminate\Contracts\Config\Repository

$executor protected_oe property

The executor instance.
protected Executor,Zenstruck\Backup $executor
return Zenstruck\Backup\Executor

$profile protected_oe property

The backup profile.
protected string $profile
return string

$registry protected_oe property

The profile registry.
protected ProfileRegistry,Zenstruck\Backup $registry
return Zenstruck\Backup\ProfileRegistry