PoStreamInterface.php 757 B

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