BackupInterface.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Interface for work with archives
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Framework\Backup;
  12. /**
  13. * @api
  14. *
  15. * @deprecated 101.0.7 Backups should be done using other means.
  16. * @since 100.0.2
  17. */
  18. interface BackupInterface
  19. {
  20. /**
  21. * Create Backup
  22. *
  23. * @return boolean
  24. */
  25. public function create();
  26. /**
  27. * Rollback Backup
  28. *
  29. * @return boolean
  30. */
  31. public function rollback();
  32. /**
  33. * Set Backup Extension
  34. *
  35. * @param string $backupExtension
  36. * @return $this
  37. */
  38. public function setBackupExtension($backupExtension);
  39. /**
  40. * Set Resource Model
  41. *
  42. * @param object $resourceModel
  43. * @return $this
  44. */
  45. public function setResourceModel($resourceModel);
  46. /**
  47. * Set Time
  48. *
  49. * @param int $time
  50. * @return $this
  51. */
  52. public function setTime($time);
  53. /**
  54. * Get Backup Type
  55. *
  56. * @return string
  57. */
  58. public function getType();
  59. /**
  60. * Set path to directory where backups stored
  61. *
  62. * @param string $backupsDir
  63. * @return $this
  64. */
  65. public function setBackupsDir($backupsDir);
  66. }