Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Component/Gettext/PoMetadataInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/lib/Drupal/Component/Gettext/PoMetadataInterface.php Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,45 @@ +<?php + +namespace Drupal\Component\Gettext; + +/** + * 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 \Drupal\Component\Gettext\PoHeader $header + * Header object representing metadata in a PO header. + */ + public function setHeader(PoHeader $header); + + /** + * Get header metadata. + * + * @return \Drupal\Component\Gettext\PoHeader + * Header instance representing metadata in a PO header. + */ + public function getHeader(); + +}