PHP Class Spatie\Backup\BackupDestination\BackupDestination

Show file Open project: spatie/laravel-backup Class Usage Examples

Public Properties

Property Type Description
$connectionError Exception

Protected Properties

Property Type Description
$backupName string
$disk Illuminate\Contracts\Filesystem\Filesystem
$diskName string

Public Methods

Method Description
__construct ( Illuminate\Contracts\Filesystem\Filesystem $disk = null, string $backupName, string $diskName )
backupName ( ) : string
backups ( ) : BackupCollection
connectionError ( ) : Exception
create ( string $diskName, string $backupName ) : BackupDestination
disk ( ) : Illuminate\Contracts\Filesystem\Filesystem
diskName ( ) : string
filesystemType ( ) : string
isReachable ( ) : boolean
newestBackup ( ) : Backup | null
newestBackupIsOlderThan ( Carbon\Carbon $date ) : boolean
oldestBackup ( ) : Backup | null
usedStorage ( ) : integer
write ( string $file )

Method Details

__construct() public method

public __construct ( Illuminate\Contracts\Filesystem\Filesystem $disk = null, string $backupName, string $diskName )
$disk Illuminate\Contracts\Filesystem\Filesystem
$backupName string
$diskName string

backupName() public method

public backupName ( ) : string
return string

backups() public method

public backups ( ) : BackupCollection
return BackupCollection

connectionError() public method

public connectionError ( ) : Exception
return Exception

create() public static method

public static create ( string $diskName, string $backupName ) : BackupDestination
$diskName string
$backupName string
return BackupDestination

disk() public method

public disk ( ) : Illuminate\Contracts\Filesystem\Filesystem
return Illuminate\Contracts\Filesystem\Filesystem

diskName() public method

public diskName ( ) : string
return string

filesystemType() public method

public filesystemType ( ) : string
return string

isReachable() public method

public isReachable ( ) : boolean
return boolean

newestBackup() public method

public newestBackup ( ) : Backup | null
return Backup | null

newestBackupIsOlderThan() public method

public newestBackupIsOlderThan ( Carbon\Carbon $date ) : boolean
$date Carbon\Carbon
return boolean

oldestBackup() public method

public oldestBackup ( ) : Backup | null
return Backup | null

usedStorage() public method

public usedStorage ( ) : integer
return integer

write() public method

public write ( string $file )
$file string

Property Details

$backupName protected property

protected string $backupName
return string

$connectionError public property

public Exception $connectionError
return Exception

$disk protected property

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

$diskName protected property

protected string $diskName
return string