diff options
Diffstat (limited to 'sites/all/modules/l10n_update/includes/gettext/PoMetadataInterface.php')
-rw-r--r-- | sites/all/modules/l10n_update/includes/gettext/PoMetadataInterface.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/sites/all/modules/l10n_update/includes/gettext/PoMetadataInterface.php b/sites/all/modules/l10n_update/includes/gettext/PoMetadataInterface.php new file mode 100644 index 000000000..982aa392c --- /dev/null +++ b/sites/all/modules/l10n_update/includes/gettext/PoMetadataInterface.php @@ -0,0 +1,48 @@ +<?php + +/** + * @file + * Definition of Drupal\Component\Gettext\PoMetadataInterface. + */ + +/** + * Methods required for both reader and writer implementations. + * + * @see Drupal\Component\Gettext\PoReaderInterface + * @see Drupal\Component\Gettext\PoWriterInterface + */ +interface PoMetadataInterface { + + /** + * Set language code. + * + * @param string $langcode + * Language code string. + */ + public function setLangcode($langcode); + + /** + * Get language code. + * + * @return string + * Language code string. + */ + public function getLangcode(); + + /** + * Set header metadata. + * + * @param PoHeader $header + * Header object representing metadata in a PO header. + */ + public function setHeader(PoHeader $header); + + /** + * Get header metadata. + * + * @return PoHeader $header + * Header instance representing metadata in a PO header. + */ + public function getHeader(); + +} |