ArchiveInterface.php 698 B

12345678910111213141516171819202122232425262728293031323334353637
  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\Archive;
  12. /**
  13. * @api
  14. * @since 100.0.2
  15. */
  16. interface ArchiveInterface
  17. {
  18. /**
  19. * Pack file or directory.
  20. *
  21. * @param string $source
  22. * @param string $destination
  23. * @return string
  24. */
  25. public function pack($source, $destination);
  26. /**
  27. * Unpack file or directory.
  28. *
  29. * @param string $source
  30. * @param string $destination
  31. * @return string
  32. */
  33. public function unpack($source, $destination);
  34. }