PoStreamInterface.php 716 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Drupal\Component\Gettext;
  3. /**
  4. * Common functions for file/stream based PO readers/writers.
  5. *
  6. * @see PoReaderInterface
  7. * @see PoWriterInterface
  8. */
  9. interface PoStreamInterface {
  10. /**
  11. * Open the stream. Set the URI for the stream earlier with setURI().
  12. */
  13. public function open();
  14. /**
  15. * Close the stream.
  16. */
  17. public function close();
  18. /**
  19. * Gets the URI of the PO stream that is being read or written.
  20. *
  21. * @return
  22. * URI string for this stream.
  23. */
  24. public function getURI();
  25. /**
  26. * Set the URI of the PO stream that is going to be read or written.
  27. *
  28. * @param $uri
  29. * URI string to set for this stream.
  30. */
  31. public function setURI($uri);
  32. }