|
| 1 | +<?php |
| 2 | + |
| 3 | +/** @generate-class-entries */ |
| 4 | + |
| 5 | +/** |
| 6 | + * @not-serializable |
| 7 | + * @strict-properties |
| 8 | + */ |
| 9 | +final class IntlNumberRangeFormatter { |
| 10 | +#if U_ICU_VERSION_MAJOR_NUM >= 63 |
| 11 | + /** @cvalue UNUM_RANGE_COLLAPSE_AUTO */ |
| 12 | + public const int COLLAPSE_AUTO = UNKNOWN; |
| 13 | + |
| 14 | + /** @cvalue UNUM_RANGE_COLLAPSE_NONE */ |
| 15 | + public const int COLLAPSE_NONE = UNKNOWN; |
| 16 | + |
| 17 | + /** @cvalue UNUM_RANGE_COLLAPSE_UNIT */ |
| 18 | + public const int COLLAPSE_UNIT = UNKNOWN; |
| 19 | + |
| 20 | + /** @cvalue UNUM_RANGE_COLLAPSE_ALL */ |
| 21 | + public const int COLLAPSE_ALL = UNKNOWN; |
| 22 | + |
| 23 | + /** @cvalue UNUM_IDENTITY_FALLBACK_SINGLE_VALUE */ |
| 24 | + public const int IDENTITY_FALLBACK_SINGLE_VALUE = UNKNOWN; |
| 25 | + |
| 26 | + /** @cvalue UNUM_IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE */ |
| 27 | + public const int IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE = UNKNOWN; |
| 28 | + |
| 29 | + /** @cvalue UNUM_IDENTITY_FALLBACK_APPROXIMATELY */ |
| 30 | + public const int IDENTITY_FALLBACK_APPROXIMATELY = UNKNOWN; |
| 31 | + |
| 32 | + /** @cvalue UNUM_IDENTITY_FALLBACK_RANGE */ |
| 33 | + public const int IDENTITY_FALLBACK_RANGE = UNKNOWN; |
| 34 | +#else |
| 35 | + public const int COLLAPSE_AUTO = 0; |
| 36 | + |
| 37 | + public const int COLLAPSE_NONE = 1; |
| 38 | + |
| 39 | + public const int COLLAPSE_UNIT = 2; |
| 40 | + |
| 41 | + public const int COLLAPSE_ALL = 3; |
| 42 | + |
| 43 | + public const int IDENTITY_FALLBACK_SINGLE_VALUE = 0; |
| 44 | + |
| 45 | + public const int IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE = 1; |
| 46 | + |
| 47 | + public const int IDENTITY_FALLBACK_APPROXIMATELY = 2; |
| 48 | + |
| 49 | + public const int IDENTITY_FALLBACK_RANGE = 3; |
| 50 | +#endif |
| 51 | + |
| 52 | + private function __construct() {} |
| 53 | + |
| 54 | + public static function createFromSkeleton(string $skeleton, string $locale, int $collapse, int $identityFallback): IntlNumberRangeFormatter {} |
| 55 | + |
| 56 | + public function format(float|int $start, float|int $end): string {} |
| 57 | + |
| 58 | + public function getErrorCode(): int {} |
| 59 | + |
| 60 | + public function getErrorMessage(): string {} |
| 61 | +} |
0 commit comments