ZipData.php 695 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the nelexa/zip package.
  5. * (c) Ne-Lexa <https://github.com/Ne-Lexa/php-zip>
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. namespace PhpZip\Model;
  10. use PhpZip\Exception\ZipException;
  11. interface ZipData
  12. {
  13. /**
  14. * @return string returns data as string
  15. */
  16. public function getDataAsString(): string;
  17. /**
  18. * @return resource returns stream data
  19. */
  20. public function getDataAsStream();
  21. /**
  22. * @param resource $outStream
  23. *
  24. * @throws ZipException
  25. */
  26. public function copyDataToStream($outStream);
  27. }