comparison core/lib/Drupal/Component/Gettext/PoWriterInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }