Ajax
1 day ago
BackgroundProcessing
1 year ago
Dto
2 weeks ago
Entity
2 weeks ago
Exceptions
1 year ago
FileHeader
1 month ago
Interfaces
7 months ago
Job
2 months ago
Request
1 year ago
Service
1 day ago
Storage
1 month ago
Task
1 day ago
Traits
10 months ago
Utils
3 months ago
AfterRestore.php
5 months ago
BackupDeleter.php
2 months ago
BackupDownload.php
8 months ago
BackupFileIndex.php
1 year ago
BackupGlitchReason.php
1 year ago
BackupHeader.php
1 month ago
BackupRepairer.php
7 months ago
BackupRetentionHandler.php
1 month ago
BackupScheduler.php
2 weeks ago
BackupServiceProvider.php
2 months ago
BackupValidator.php
7 months ago
FileHeader.php
2 weeks ago
FileHeaderAttribute.php
2 years ago
WithBackupIdentifier.php
1 year ago
BackupGlitchReason.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Backup; |
| 4 | |
| 5 | /** |
| 6 | * This class is responsible for holding the glitch reasons for the backup process. |
| 7 | * Glitch is something that unexpected happened during the backup process but was automatically fixed. |
| 8 | * Analytics are hard to track, that is why we use `Glitch Modal` so user can explicitly report us when this happens. |
| 9 | * |
| 10 | * @todo Refactor the slow backup creation logic to use the `Glitch` class and set the reason in FinishBackupTask |
| 11 | */ |
| 12 | class BackupGlitchReason |
| 13 | { |
| 14 | /** @var string */ |
| 15 | const SLOW_BACKUP_CREATION = 'REASON_SLOW_BACKUP_CREATION'; |
| 16 | |
| 17 | /** @var string */ |
| 18 | const WRONG_TOTAL_FILES_COUNT = 'REASON_WRONG_TOTAL_FILES_COUNT'; |
| 19 | } |
| 20 |