3 namespace Drupal\Component\Gettext;
6 * Shared interface definition for all Gettext PO Writers.
8 interface PoWriterInterface extends PoMetadataInterface {
11 * Writes the given item.
14 * One specific item to write.
16 public function writeItem(PoItem $item);
19 * Writes all or the given amount of items.
21 * @param PoReaderInterface $reader
22 * Reader to read PoItems from.
24 * Amount of items to read from $reader to write. If -1, all items are
27 public function writeItems(PoReaderInterface $reader, $count = -1);