1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 13:43:02 +02:00
Files
archived-php-src/ext/intl/msgformat/msgformat.stub.php
Nikita Popov 9fe4966811 Remove null return type from msgfmt_parse_message()
This doesn't seem to possible. Only false is returned on failure.
2021-07-14 12:00:18 +02:00

69 lines
1.6 KiB
PHP

<?php
/** @generate-class-entries */
class MessageFormatter
{
public function __construct(string $locale, string $pattern) {}
/**
* @tentative-return-type
* @alias msgfmt_create
*/
public static function create(string $locale, string $pattern): ?MessageFormatter {}
/**
* @tentative-return-type
* @alias msgfmt_format
*/
public function format(array $values): string|false {}
/**
* @tentative-return-type
* @alias msgfmt_format_message
*/
public static function formatMessage(string $locale, string $pattern, array $values): string|false {}
/**
* @tentative-return-type
* @alias msgfmt_parse
*/
public function parse(string $string): array|false {}
/**
* @tentative-return-type
* @alias msgfmt_parse_message
*/
public static function parseMessage(string $locale, string $pattern, string $message): array|false {}
/**
* @tentative-return-type
* @alias msgfmt_set_pattern
*/
public function setPattern(string $pattern): bool {}
/**
* @tentative-return-type
* @alias msgfmt_get_pattern
*/
public function getPattern(): string|false {}
/**
* @tentative-return-type
* @alias msgfmt_get_locale
*/
public function getLocale(): string {}
/**
* @tentative-return-type
* @alias msgfmt_get_error_code
*/
public function getErrorCode(): int {}
/**
* @tentative-return-type
* @alias msgfmt_get_error_message
*/
public function getErrorMessage(): string {}
}