php-src/ext/intl/timezone/timezone.stub.php
Gina Peter Banyard fe88711b14
ext/intl: Use ZPP specifier for IntlTimeZone::createEnumeration() (#19393)
The existing code is extremely convoluted, incorrectly documented, and does not follow the usual semantics
2025-08-07 22:37:16 +01:00

188 lines
5.1 KiB
PHP

<?php
/** @generate-class-entries */
/** @not-serializable */
class IntlTimeZone
{
/** @cvalue TimeZone::SHORT */
public const int DISPLAY_SHORT = UNKNOWN;
/** @cvalue TimeZone::LONG */
public const int DISPLAY_LONG = UNKNOWN;
/** @cvalue TimeZone::SHORT_GENERIC */
public const int DISPLAY_SHORT_GENERIC = UNKNOWN;
/** @cvalue TimeZone::LONG_GENERIC */
public const int DISPLAY_LONG_GENERIC = UNKNOWN;
/** @cvalue TimeZone::SHORT_GMT */
public const int DISPLAY_SHORT_GMT = UNKNOWN;
/** @cvalue TimeZone::LONG_GMT */
public const int DISPLAY_LONG_GMT = UNKNOWN;
/** @cvalue TimeZone::SHORT_COMMONLY_USED */
public const int DISPLAY_SHORT_COMMONLY_USED = UNKNOWN;
/** @cvalue TimeZone::GENERIC_LOCATION */
public const int DISPLAY_GENERIC_LOCATION = UNKNOWN;
/** @cvalue UCAL_ZONE_TYPE_ANY */
public const int TYPE_ANY = UNKNOWN;
/** @cvalue UCAL_ZONE_TYPE_CANONICAL */
public const int TYPE_CANONICAL = UNKNOWN;
/** @cvalue UCAL_ZONE_TYPE_CANONICAL_LOCATION */
public const int TYPE_CANONICAL_LOCATION = UNKNOWN;
private function __construct() {}
/**
* @tentative-return-type
* @alias intltz_count_equivalent_ids
*/
public static function countEquivalentIDs(string $timezoneId): int|false {}
/**
* @tentative-return-type
* @alias intltz_create_default
*/
public static function createDefault(): IntlTimeZone {}
/**
* @tentative-return-type
* @alias intltz_create_enumeration
*/
public static function createEnumeration(string|int|null $countryOrRawOffset = null): IntlIterator|false {}
/**
* @tentative-return-type
* @alias intltz_create_time_zone
*/
public static function createTimeZone(string $timezoneId): ?IntlTimeZone {}
/**
* @tentative-return-type
* @alias intltz_create_time_zone_id_enumeration
*/
public static function createTimeZoneIDEnumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false {}
/**
* @tentative-return-type
* @alias intltz_from_date_time_zone
*/
public static function fromDateTimeZone(DateTimeZone $timezone): ?IntlTimeZone {}
/**
* @param bool $isSystemId
* @tentative-return-type
* @alias intltz_get_canonical_id
*/
public static function getCanonicalID(string $timezoneId, &$isSystemId = null): string|false {}
/**
* @tentative-return-type
* @alias intltz_get_display_name
*/
public function getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null): string|false {}
/**
* @tentative-return-type
* @alias intltz_get_dst_savings
*/
public function getDSTSavings(): int {}
/**
* @tentative-return-type
* @alias intltz_get_equivalent_id
*/
public static function getEquivalentID(string $timezoneId, int $offset): string|false {}
/**
* @tentative-return-type
* @alias intltz_get_error_code
*/
public function getErrorCode(): int|false {}
/**
* @tentative-return-type
* @alias intltz_get_error_message
*/
public function getErrorMessage(): string|false {}
/**
* @tentative-return-type
* @alias intltz_get_gmt
*/
public static function getGMT(): IntlTimeZone {}
#if U_ICU_VERSION_MAJOR_NUM >= 74
/**
* @alias intltz_get_iana_id
*/
public static function getIanaID(string $timezoneId): string|false {}
#endif
/**
* @tentative-return-type
* @alias intltz_get_id
*/
public function getID(): string|false {}
/**
* @param int $rawOffset
* @param int $dstOffset
* @tentative-return-type
* @alias intltz_get_offset
*/
public function getOffset(float $timestamp, bool $local, &$rawOffset, &$dstOffset): bool {}
/**
* @tentative-return-type
* @alias intltz_get_raw_offset
*/
public function getRawOffset(): int {}
/**
* @tentative-return-type
* @alias intltz_get_region
*/
public static function getRegion(string $timezoneId): string|false {}
/**
* @tentative-return-type
* @alias intltz_get_tz_data_version
*/
public static function getTZDataVersion(): string|false {}
/**
* @tentative-return-type
* @alias intltz_get_unknown
*/
public static function getUnknown(): IntlTimeZone {}
/**
* @tentative-return-type
* @alias intltz_get_windows_id
*/
public static function getWindowsID(string $timezoneId): string|false {}
/**
* @tentative-return-type
* @alias intltz_get_id_for_windows_id
*/
public static function getIDForWindowsID(string $timezoneId, ?string $region = null): string|false {}
/**
* @tentative-return-type
* @alias intltz_has_same_rules
*/
public function hasSameRules(IntlTimeZone $other): bool {}
/**
* @tentative-return-type
* @alias intltz_to_date_time_zone
*/
public function toDateTimeZone(): DateTimeZone|false {}
/**
* @tentative-return-type
* @alias intltz_use_daylight_time
*/
public function useDaylightTime(): bool {}
}