1 | <?php |
||
8 | class PhoneNumberDesc |
||
9 | { |
||
10 | protected $hasNationalNumberPattern = false; |
||
11 | protected $nationalNumberPattern = ""; |
||
12 | protected $hasExampleNumber = false; |
||
13 | protected $exampleNumber = ""; |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $possibleLength; |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $possibleLengthLocalOnly; |
||
22 | |||
23 | public function __construct() |
||
24 | { |
||
25 | 1596 | $this->clear(); |
|
26 | } |
||
27 | 1596 | ||
28 | 1596 | /** |
|
29 | * @return PhoneNumberDesc |
||
30 | */ |
||
31 | public function clear() |
||
40 | |||
41 | 1596 | /** |
|
42 | * @return array |
||
43 | */ |
||
44 | public function getPossibleLength() |
||
45 | { |
||
46 | return $this->possibleLength; |
||
47 | 3521 | } |
|
48 | |||
49 | 3521 | /** |
|
50 | * @param array $possibleLength |
||
51 | */ |
||
52 | public function setPossibleLength($possibleLength) |
||
53 | { |
||
54 | $this->possibleLength = $possibleLength; |
||
55 | 1587 | } |
|
56 | |||
57 | 1587 | public function addPossibleLength($possibleLength) |
|
63 | 8 | ||
64 | public function clearPossibleLength() |
||
65 | 8 | { |
|
66 | $this->possibleLength = array(); |
||
67 | 1596 | } |
|
68 | |||
69 | 1596 | /** |
|
70 | 1596 | * @return array |
|
71 | */ |
||
72 | public function getPossibleLengthLocalOnly() |
||
73 | { |
||
74 | return $this->possibleLengthLocalOnly; |
||
75 | 3470 | } |
|
76 | |||
77 | 3470 | /** |
|
78 | * @param array $possibleLengthLocalOnly |
||
79 | */ |
||
80 | public function setPossibleLengthLocalOnly($possibleLengthLocalOnly) |
||
81 | { |
||
82 | $this->possibleLengthLocalOnly = $possibleLengthLocalOnly; |
||
83 | 1572 | } |
|
84 | |||
85 | 1572 | public function addPossibleLengthLocalOnly($possibleLengthLocalOnly) |
|
91 | 6 | ||
92 | public function clearPossibleLengthLocalOnly() |
||
93 | 6 | { |
|
94 | $this->possibleLengthLocalOnly = array(); |
||
95 | 1596 | } |
|
96 | |||
97 | 1596 | /** |
|
98 | 1596 | * @return boolean |
|
99 | */ |
||
100 | public function hasNationalNumberPattern() |
||
101 | { |
||
102 | return $this->hasNationalNumberPattern; |
||
103 | 487 | } |
|
104 | |||
105 | 487 | /** |
|
106 | * @return string |
||
107 | */ |
||
108 | public function getNationalNumberPattern() |
||
109 | { |
||
110 | return $this->nationalNumberPattern; |
||
111 | 3095 | } |
|
112 | |||
113 | 3095 | /** |
|
114 | * @param string $value |
||
115 | * @return PhoneNumberDesc |
||
116 | */ |
||
117 | public function setNationalNumberPattern($value) |
||
118 | { |
||
119 | $this->hasNationalNumberPattern = true; |
||
120 | 1579 | $this->nationalNumberPattern = $value; |
|
121 | |||
122 | 1579 | return $this; |
|
123 | 1579 | } |
|
124 | |||
125 | 1579 | /** |
|
126 | * @return PhoneNumberDesc |
||
127 | */ |
||
128 | public function clearNationalNumberPattern() |
||
129 | { |
||
130 | $this->hasNationalNumberPattern = false; |
||
131 | 1596 | $this->nationalNumberPattern = ''; |
|
132 | return $this; |
||
133 | 1596 | } |
|
134 | 1596 | ||
135 | 1596 | /** |
|
136 | * @return string |
||
137 | */ |
||
138 | public function hasExampleNumber() |
||
139 | { |
||
140 | return $this->hasExampleNumber; |
||
141 | 485 | } |
|
142 | |||
143 | 485 | /** |
|
144 | * @return string |
||
145 | */ |
||
146 | public function getExampleNumber() |
||
147 | { |
||
148 | return $this->exampleNumber; |
||
149 | 21 | } |
|
150 | |||
151 | 21 | /** |
|
152 | * @param string $value |
||
153 | * @return PhoneNumberDesc |
||
154 | */ |
||
155 | public function setExampleNumber($value) |
||
162 | |||
163 | /** |
||
164 | * @return PhoneNumberDesc |
||
165 | */ |
||
166 | public function clearExampleNumber() |
||
167 | { |
||
168 | $this->hasExampleNumber = false; |
||
169 | $this->exampleNumber = ''; |
||
170 | |||
171 | return $this; |
||
172 | } |
||
173 | |||
174 | /** |
||
175 | * @param PhoneNumberDesc $other |
||
176 | * @return PhoneNumberDesc |
||
177 | */ |
||
178 | public function mergeFrom(PhoneNumberDesc $other) |
||
191 | |||
192 | /** |
||
193 | * @param PhoneNumberDesc $other |
||
194 | * @return boolean |
||
195 | */ |
||
196 | 1572 | public function exactlySameAs(PhoneNumberDesc $other) |
|
201 | 1572 | ||
202 | /** |
||
203 | * @return array |
||
204 | */ |
||
205 | public function toArray() |
||
220 | |||
221 | 3 | /** |
|
222 | 3 | * @param array $input |
|
223 | * @return PhoneNumberDesc |
||
224 | 3 | */ |
|
225 | public function fromArray(array $input) |
||
238 | } |
||
239 |