PHP 클래스 Spatie\Backup\Tasks\Monitor\BackupDestinationStatus

파일 보기 프로젝트 열기: spatie/laravel-backup 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$backupDestination Spatie\Backup\BackupDestination\BackupDestination
$diskName string
$maximumAgeOfNewestBackupInDays integer
$maximumStorageUsageInMegabytes integer
$reachable boolean

공개 메소드들

메소드 설명
__construct ( BackupDestination $backupDestination, string $diskName )
amountOfBackups ( ) : integer
backupDestination ( ) : BackupDestination
backupName ( ) : string
connectionError ( ) : Exception
dateOfNewestBackup ( ) : Carbon\Carbon | null
diskName ( ) : string
humanReadableAllowedStorage ( ) : string
humanReadableUsedStorage ( ) : string
isHealthy ( ) : boolean
isReachable ( ) : boolean
maximumAgeOfNewestBackupInDays ( ) : integer
maximumAllowedUsageInBytes ( ) : integer
newestBackupIsTooOld ( ) : boolean
setMaximumAgeOfNewestBackupInDays ( integer $days ) : BackupDestinationStatus
setMaximumStorageUsageInMegabytes ( float $megabytes ) : BackupDestinationStatus
usedStorage ( ) : integer
usesTooMuchStorage ( ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( BackupDestination $backupDestination, string $diskName )
$backupDestination Spatie\Backup\BackupDestination\BackupDestination
$diskName string

amountOfBackups() 공개 메소드

public amountOfBackups ( ) : integer
리턴 integer

backupDestination() 공개 메소드

public backupDestination ( ) : BackupDestination
리턴 Spatie\Backup\BackupDestination\BackupDestination

backupName() 공개 메소드

public backupName ( ) : string
리턴 string

connectionError() 공개 메소드

public connectionError ( ) : Exception
리턴 Exception

dateOfNewestBackup() 공개 메소드

public dateOfNewestBackup ( ) : Carbon\Carbon | null
리턴 Carbon\Carbon | null

diskName() 공개 메소드

public diskName ( ) : string
리턴 string

humanReadableAllowedStorage() 공개 메소드

humanReadableUsedStorage() 공개 메소드

public humanReadableUsedStorage ( ) : string
리턴 string

isHealthy() 공개 메소드

public isHealthy ( ) : boolean
리턴 boolean

isReachable() 공개 메소드

public isReachable ( ) : boolean
리턴 boolean

maximumAgeOfNewestBackupInDays() 공개 메소드

maximumAllowedUsageInBytes() 공개 메소드

newestBackupIsTooOld() 공개 메소드

public newestBackupIsTooOld ( ) : boolean
리턴 boolean

setMaximumAgeOfNewestBackupInDays() 공개 메소드

public setMaximumAgeOfNewestBackupInDays ( integer $days ) : BackupDestinationStatus
$days integer
리턴 BackupDestinationStatus

setMaximumStorageUsageInMegabytes() 공개 메소드

public setMaximumStorageUsageInMegabytes ( float $megabytes ) : BackupDestinationStatus
$megabytes float
리턴 BackupDestinationStatus

usedStorage() 공개 메소드

public usedStorage ( ) : integer
리턴 integer

usesTooMuchStorage() 공개 메소드

public usesTooMuchStorage ( ) : boolean
리턴 boolean

프로퍼티 상세

$backupDestination 보호되어 있는 프로퍼티

protected BackupDestination,Spatie\Backup\BackupDestination $backupDestination
리턴 Spatie\Backup\BackupDestination\BackupDestination

$diskName 보호되어 있는 프로퍼티

protected string $diskName
리턴 string

$maximumAgeOfNewestBackupInDays 보호되어 있는 프로퍼티

protected int $maximumAgeOfNewestBackupInDays
리턴 integer

$maximumStorageUsageInMegabytes 보호되어 있는 프로퍼티

protected int $maximumStorageUsageInMegabytes
리턴 integer

$reachable 보호되어 있는 프로퍼티

protected bool $reachable
리턴 boolean