Mercurial > hg > isophonics-drupal-site
annotate core/lib/Drupal/Component/Gettext/PoMetadataInterface.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\Component\Gettext; |
Chris@0 | 4 |
Chris@0 | 5 /** |
Chris@0 | 6 * Methods required for both reader and writer implementations. |
Chris@0 | 7 * |
Chris@0 | 8 * @see \Drupal\Component\Gettext\PoReaderInterface |
Chris@0 | 9 * @see \Drupal\Component\Gettext\PoWriterInterface |
Chris@0 | 10 */ |
Chris@0 | 11 interface PoMetadataInterface { |
Chris@0 | 12 |
Chris@0 | 13 /** |
Chris@0 | 14 * Set language code. |
Chris@0 | 15 * |
Chris@0 | 16 * @param string $langcode |
Chris@0 | 17 * Language code string. |
Chris@0 | 18 */ |
Chris@0 | 19 public function setLangcode($langcode); |
Chris@0 | 20 |
Chris@0 | 21 /** |
Chris@0 | 22 * Get language code. |
Chris@0 | 23 * |
Chris@0 | 24 * @return string |
Chris@0 | 25 * Language code string. |
Chris@0 | 26 */ |
Chris@0 | 27 public function getLangcode(); |
Chris@0 | 28 |
Chris@0 | 29 /** |
Chris@0 | 30 * Set header metadata. |
Chris@0 | 31 * |
Chris@0 | 32 * @param \Drupal\Component\Gettext\PoHeader $header |
Chris@0 | 33 * Header object representing metadata in a PO header. |
Chris@0 | 34 */ |
Chris@0 | 35 public function setHeader(PoHeader $header); |
Chris@0 | 36 |
Chris@0 | 37 /** |
Chris@0 | 38 * Get header metadata. |
Chris@0 | 39 * |
Chris@0 | 40 * @return \Drupal\Component\Gettext\PoHeader |
Chris@0 | 41 * Header instance representing metadata in a PO header. |
Chris@0 | 42 */ |
Chris@0 | 43 public function getHeader(); |
Chris@0 | 44 |
Chris@0 | 45 } |