bool confirm(string $question, bool $default = true) Asks for confirmation. Parameters string $question bool $default Return Value bool
caution(string|array $message) Formats a caution admonition. Parameters string|array $message
error(string|array $message) Formats an error result bar. Parameters string|array $message
class StubNumberFormatter extends NumberFormatter deprecated since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\NumberFormatter\NumberFormatter} instead. Alias of {@link \Symfony\Component\Intl\NumberFormatter\NumberFormatter}. Constants PATTERN_DECIMAL DECIMAL CURRENCY PERCENT SCIENTIFIC SPELLOUT ORDINAL DURATION PATTERN_RULEBASED IGNORE DEFAULT_STYLE TYPE_DEFAULT TYPE_INT32 TYPE_INT64 TYPE_DOUBLE TYPE
string ask(string $question, string|null $default = null, callable|null $validator = null) Asks a question. Parameters string $question string|null $default callable|null $validator Return Value string
interface StyleInterface Output style helpers. Methods title(string $message) Formats a command title. section(string $message) Formats a section title. listing(array $elements) Formats a list. text(string|array $message) Formats informational text. success(string|array $message) Formats a success result bar. error(string|array $message) Formats an error result bar. warning(string|array $message) Formats an warning result bar. note(string|array $message
static array getDisplayCurrencies(string $locale) Returns the currencies names for a locale. Parameters string $locale The locale to use for the currencies names Return Value array The currencies names with their codes as keys Exceptions InvalidArgumentException When the locale is different than 'en'
static getDataDirectory()
static array getCurrenciesData(string $locale) Returns the currencies data. Parameters string $locale Return Value array The currencies data
class StubLocale extends Locale deprecated since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\Locale\Locale} and {@link \Symfony\Component\Intl\Intl} instead. Alias of {@link \Symfony\Component\Intl\Locale\Locale}. Constants DEFAULT_LOCALE ACTUAL_LOCALE VALID_LOCALE LANG_TAG EXTLANG_TAG SCRIPT_TAG REGION_TAG VARIANT_TAG GRANDFATHERED_LANG_TAG PRIVATE_TAG Methods static string acceptFromHttp(string $header) Not support
Page 91 of 787