ZipOutputStreamInterface.php 475 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace PhpZip\Stream;
  3. use PhpZip\Model\ZipEntry;
  4. /**
  5. * Write zip file.
  6. *
  7. * @author Ne-Lexa alexey@nelexa.ru
  8. * @license MIT
  9. */
  10. interface ZipOutputStreamInterface
  11. {
  12. /** Central File Header signature. */
  13. const CENTRAL_FILE_HEADER_SIG = 0x02014B50;
  14. public function writeZip();
  15. /**
  16. * @param ZipEntry $entry
  17. */
  18. public function writeEntry(ZipEntry $entry);
  19. /**
  20. * @return resource
  21. */
  22. public function getStream();
  23. }