BackupInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 BackupInterface
  14. {
  15. /**
  16. * Set backup time
  17. *
  18. * @param int $time
  19. * @return $this
  20. */
  21. public function setTime($time);
  22. /**
  23. * Set backup type
  24. *
  25. * @param string $type
  26. * @return $this
  27. */
  28. public function setType($type);
  29. /**
  30. * Set backup path
  31. *
  32. * @param string $path
  33. * @return $this
  34. */
  35. public function setPath($path);
  36. /**
  37. * Set backup name
  38. *
  39. * @param string $name
  40. * @return $this
  41. */
  42. public function setName($name);
  43. /**
  44. * Open backup file (write or read mode)
  45. *
  46. * @param bool $write
  47. * @return $this
  48. */
  49. public function open($write = false);
  50. /**
  51. * Write to backup file
  52. *
  53. * @param string $data
  54. * @return $this
  55. */
  56. public function write($data);
  57. /**
  58. * Close open backup file
  59. *
  60. * @return $this
  61. */
  62. public function close();
  63. }