PHP Class Spatie\Backup\BackupDestination\Backup

Datei anzeigen Open project: spatie/laravel-backup Class Usage Examples

Protected Properties

Property Type Description
$disk Illuminate\Contracts\Filesystem\Filesystem
$path string

Public Methods

Method Description
__construct ( Illuminate\Contracts\Filesystem\Filesystem $disk, string $path )
date ( ) : Carbon\Carbon
delete ( ) Delete the backup from the disk.
exists ( ) : boolean
path ( ) : string
size ( ) : integer Get the size in bytes.

Method Details

__construct() public method

public __construct ( Illuminate\Contracts\Filesystem\Filesystem $disk, string $path )
$disk Illuminate\Contracts\Filesystem\Filesystem
$path string

date() public method

public date ( ) : Carbon\Carbon
return Carbon\Carbon

delete() public method

Delete the backup from the disk.
public delete ( )

exists() public method

public exists ( ) : boolean
return boolean

path() public method

public path ( ) : string
return string

size() public method

Get the size in bytes.
public size ( ) : integer
return integer

Property Details

$disk protected_oe property

protected Filesystem,Illuminate\Contracts\Filesystem $disk
return Illuminate\Contracts\Filesystem\Filesystem

$path protected_oe property

protected string $path
return string