You are here

interface PoStreamInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Gettext/PoStreamInterface.php \Drupal\Component\Gettext\PoStreamInterface
  2. 9 core/lib/Drupal/Component/Gettext/PoStreamInterface.php \Drupal\Component\Gettext\PoStreamInterface

Common functions for file/stream based PO readers/writers.

Hierarchy

Expanded class hierarchy of PoStreamInterface

All classes that implement PoStreamInterface

See also

PoReaderInterface

PoWriterInterface

File

core/lib/Drupal/Component/Gettext/PoStreamInterface.php, line 11

Namespace

Drupal\Component\Gettext
View source
interface PoStreamInterface {

  /**
   * Open the stream. Set the URI for the stream earlier with setURI().
   */
  public function open();

  /**
   * Close the stream.
   */
  public function close();

  /**
   * Gets the URI of the PO stream that is being read or written.
   *
   * @return
   *   URI string for this stream.
   */
  public function getURI();

  /**
   * Set the URI of the PO stream that is going to be read or written.
   *
   * @param $uri
   *   URI string to set for this stream.
   */
  public function setURI($uri);

}

Members