This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/core/lib/Drupal/Component/Gettext/PoMetadataInterface.php

53 lines
1 KiB
PHP
Raw Normal View History

<?php
/**
* @file
* Contains \Drupal\Component\Gettext\PoMetadataInterface.
*/
namespace Drupal\Component\Gettext;
use Drupal\Component\Gettext\PoHeader;
/**
* 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
* Header instance representing metadata in a PO header.
*/
public function getHeader();
}