BackupDbInterface.php 586 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Backup\Db;
  7. /**
  8. * @api
  9. *
  10. * @deprecated 101.0.7 Backups should be done using other means.
  11. * @since 100.0.2
  12. */
  13. interface BackupDbInterface
  14. {
  15. /**
  16. * Create DB backup
  17. *
  18. * @param BackupInterface $backup
  19. * @return void
  20. */
  21. public function createBackup(\Magento\Framework\Backup\Db\BackupInterface $backup);
  22. /**
  23. * Get database backup size
  24. *
  25. * @return int
  26. */
  27. public function getDBBackupSize();
  28. }