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