1 | <?php |
||
8 | class NumberFormat |
||
9 | { |
||
10 | protected $pattern = null; |
||
11 | protected $format = null; |
||
12 | protected $leadingDigitsPattern = array(); |
||
13 | protected $nationalPrefixFormattingRule = null; |
||
14 | /** |
||
15 | * @var bool |
||
16 | */ |
||
17 | protected $nationalPrefixOptionalWhenFormatting = false; |
||
18 | protected $domesticCarrierCodeFormattingRule = null; |
||
19 | |||
20 | public function __construct() |
||
24 | |||
25 | /** |
||
26 | * @return NumberFormat |
||
27 | */ |
||
28 | public function clear() |
||
39 | |||
40 | /** |
||
41 | * @return boolean |
||
42 | */ |
||
43 | public function hasPattern() |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getPattern() |
||
55 | |||
56 | /** |
||
57 | * @param string $value |
||
58 | * @return NumberFormat |
||
59 | */ |
||
60 | public function setPattern($value) |
||
66 | |||
67 | /** |
||
68 | * @return boolean |
||
69 | */ |
||
70 | public function hasNationalPrefixOptionalWhenFormatting() |
||
74 | |||
75 | /** |
||
76 | * @return boolean |
||
77 | */ |
||
78 | public function getNationalPrefixOptionalWhenFormatting() |
||
82 | |||
83 | /** |
||
84 | * @param boolean $nationalPrefixOptionalWhenFormatting |
||
85 | */ |
||
86 | public function setNationalPrefixOptionalWhenFormatting($nationalPrefixOptionalWhenFormatting) |
||
90 | |||
91 | /** |
||
92 | * @return boolean |
||
93 | */ |
||
94 | public function hasFormat() |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getFormat() |
||
106 | |||
107 | /** |
||
108 | * @param string $value |
||
109 | * @return NumberFormat |
||
110 | */ |
||
111 | public function setFormat($value) |
||
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | public function leadingDigitPatterns() |
||
125 | |||
126 | /** |
||
127 | * @return int |
||
128 | */ |
||
129 | public function leadingDigitsPatternSize() |
||
133 | |||
134 | /** |
||
135 | * @param int $index |
||
136 | * @return string |
||
137 | */ |
||
138 | public function getLeadingDigitsPattern($index) |
||
142 | |||
143 | /** |
||
144 | * @param string $value |
||
145 | * @return NumberFormat |
||
146 | */ |
||
147 | public function addLeadingDigitsPattern($value) |
||
153 | |||
154 | /** |
||
155 | * @return boolean |
||
156 | */ |
||
157 | public function hasNationalPrefixFormattingRule() |
||
161 | |||
162 | /** |
||
163 | * @return string |
||
164 | */ |
||
165 | public function getNationalPrefixFormattingRule() |
||
169 | |||
170 | /** |
||
171 | * @param string $value |
||
172 | * @return NumberFormat |
||
173 | */ |
||
174 | public function setNationalPrefixFormattingRule($value) |
||
180 | |||
181 | /** |
||
182 | * @return NumberFormat |
||
183 | */ |
||
184 | public function clearNationalPrefixFormattingRule() |
||
190 | |||
191 | /** |
||
192 | * @return boolean |
||
193 | */ |
||
194 | public function hasDomesticCarrierCodeFormattingRule() |
||
198 | |||
199 | /** |
||
200 | * @return string |
||
201 | */ |
||
202 | public function getDomesticCarrierCodeFormattingRule() |
||
206 | |||
207 | /** |
||
208 | * @param string $value |
||
209 | * @return NumberFormat |
||
210 | */ |
||
211 | public function setDomesticCarrierCodeFormattingRule($value) |
||
217 | |||
218 | /** |
||
219 | * @param NumberFormat $other |
||
220 | * @return NumberFormat |
||
221 | */ |
||
222 | public function mergeFrom(NumberFormat $other) |
||
246 | |||
247 | /** |
||
248 | * @return array |
||
249 | */ |
||
250 | public function toArray() |
||
272 | |||
273 | /** |
||
274 | * @param array $input |
||
275 | */ |
||
276 | public function fromArray(array $input) |
||
295 | } |
||
296 |