Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Component / Gettext / PoWriterInterface.php
1 <?php
2
3 namespace Drupal\Component\Gettext;
4
5 /**
6  * Shared interface definition for all Gettext PO Writers.
7  */
8 interface PoWriterInterface extends PoMetadataInterface {
9
10   /**
11    * Writes the given item.
12    *
13    * @param PoItem $item
14    *   One specific item to write.
15    */
16   public function writeItem(PoItem $item);
17
18   /**
19    * Writes all or the given amount of items.
20    *
21    * @param PoReaderInterface $reader
22    *   Reader to read PoItems from.
23    * @param $count
24    *   Amount of items to read from $reader to write. If -1, all items are
25    *   read from $reader.
26    */
27   public function writeItems(PoReaderInterface $reader, $count = -1);
28
29 }