You are here

CurrencyLocaleInterface.php in Currency 8.3

File

src/Entity/CurrencyLocaleInterface.php
View source
<?php

namespace Drupal\currency\Entity;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Defines a currency currency locale.
 */
interface CurrencyLocaleInterface extends ConfigEntityInterface {

  /**
   * Sets the decimal separator.
   *
   * @param string $separator
   *
   * @return \Drupal\currency\Entity\CurrencyLocaleInterface
   */
  public function setDecimalSeparator($separator);

  /**
   * Gets the decimal separator.
   *
   * @return string
   */
  public function getDecimalSeparator();

  /**
   * Sets the grouping separator.
   *
   * @param string $separator
   *
   * @return \Drupal\currency\Entity\CurrencyLocaleInterface
   */
  public function setGroupingSeparator($separator);

  /**
   * Gets the grouping separator.
   *
   * @return string
   */
  public function getGroupingSeparator();

  /**
   * {@inheritdoc}
   *
   * The ID must be the locale, which is a lower case language code, an
   * underscore and an uppercase language code.
   *
   * @return string
   */
  public function id();

  /**
   * Sets the locale.
   *
   * @see self::id()
   *
   * @param string $language_code
   * @param string $country_code
   *
   * @return \Drupal\currency\Entity\CurrencyLocaleInterface
   */
  public function setLocale($language_code, $country_code);

  /**
   * Gets the locale.
   *
   * @see self::id()
   *
   * @return string
   */
  public function getLocale();

  /**
   * Gets the language code.
   *
   * @return string
   */
  public function getLanguageCode();

  /**
   * Gets the country code.
   *
   * @return string
   */
  public function getCountryCode();

  /**
   * Sets the CLDR pattern.
   *
   * @param string $pattern
   *
   * @return \Drupal\currency\Entity\CurrencyLocaleInterface
   */
  public function setPattern($pattern);

  /**
   * Gets the CLDR pattern
   *
   * @return string
   */
  public function getPattern();

}

Interfaces

Namesort descending Description
CurrencyLocaleInterface Defines a currency currency locale.