PoWriterInterface.php 691 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * @file
  4. * Definition of Drupal\Component\Gettext\PoWriterInterface.
  5. */
  6. /**
  7. * Shared interface definition for all Gettext PO Writers.
  8. */
  9. interface PoWriterInterface extends PoMetadataInterface {
  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. * Writes all or the given amount of items.
  19. *
  20. * @param PoReaderInterface $reader
  21. * Reader to read PoItems from.
  22. * @param $count
  23. * Amount of items to read from $reader to write. If -1, all items are
  24. * read from $reader.
  25. */
  26. public function writeItems(PoReaderInterface $reader, $count = -1);
  27. }