RegionBundle::getCountryName()

string|null getCountryName(string $country, string $displayLocale = null) Returns the name of a country. Parameters string $country A country code (e.g. "US"). string $displayLocale Optional. The locale to return the name in. Defaults to {@link \Locale::getDefault()}. Return Value string|null The name of the country or NULL if not found.

RegionBundle

class RegionBundle extends RegionDataProvider implements RegionBundleInterface Default implementation of {@link RegionBundleInterface}. Methods __construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) Creates a new region bundle. getRegions() from RegionDataProvider getName($region, $displayLocale = null) from RegionDataProvider getNames($displayLocale = null) from RegionDataProvider string|null getCountryName(string $country,

RegexValidator

class RegexValidator extends ConstraintValidator Validates whether a value match or not given regexp pattern. Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Checks if the passed v

RegionBundle::getCountryNames()

string[] getCountryNames(string $displayLocale = null) Returns the names of all known countries. Parameters string $displayLocale Optional. The locale to return the names in. Defaults to {@link \Locale::getDefault()}. Return Value string[] A list of country names indexed by country codes.

Regex::setEndFlag()

Regex setEndFlag(bool $endFlag) Parameters bool $endFlag Return Value Regex

Regex::setEndJoker()

Regex setEndJoker(bool $endJoker) Parameters bool $endJoker Return Value Regex

Regex::replaceJokers()

Regex replaceJokers(array $replacement) Parameters array $replacement Return Value Regex

Regex::setStartFlag()

Regex setStartFlag(bool $startFlag) Parameters bool $startFlag Return Value Regex

Regex::setStartJoker()

Regex setStartJoker(bool $startJoker) Parameters bool $startJoker Return Value Regex

Regex::render()

string render() Renders string representation of expression. Return Value string