1 | <?php |
||
8 | class PhoneNumberDesc |
||
9 | { |
||
10 | private $hasNationalNumberPattern = false; |
||
11 | private $nationalNumberPattern = ""; |
||
12 | private $hasPossibleNumberPattern = false; |
||
13 | private $possibleNumberPattern = ""; |
||
14 | private $hasExampleNumber = false; |
||
15 | private $exampleNumber = ""; |
||
16 | |||
17 | /** |
||
18 | * @return boolean |
||
19 | */ |
||
20 | public function hasNationalNumberPattern() |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | 2269 | public function getNationalNumberPattern() |
|
32 | |||
33 | /** |
||
34 | * @param string $value |
||
35 | * @return PhoneNumberDesc |
||
36 | */ |
||
37 | 866 | public function setNationalNumberPattern($value) |
|
44 | |||
45 | /** |
||
46 | * @return boolean |
||
47 | */ |
||
48 | public function hasPossibleNumberPattern() |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | 2431 | public function getPossibleNumberPattern() |
|
60 | |||
61 | /** |
||
62 | * @param string $value |
||
63 | * @return PhoneNumberDesc |
||
64 | */ |
||
65 | 865 | public function setPossibleNumberPattern($value) |
|
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | 4135 | public function hasExampleNumber() |
|
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | 2330 | public function getExampleNumber() |
|
88 | |||
89 | /** |
||
90 | * @param string $value |
||
91 | * @return PhoneNumberDesc |
||
92 | */ |
||
93 | 847 | public function setExampleNumber($value) |
|
100 | |||
101 | /** |
||
102 | * @param PhoneNumberDesc $other |
||
103 | * @return PhoneNumberDesc |
||
104 | */ |
||
105 | public function mergeFrom(PhoneNumberDesc $other) |
||
106 | { |
||
107 | if ($other->hasNationalNumberPattern()) { |
||
108 | $this->setNationalNumberPattern($other->getNationalNumberPattern()); |
||
109 | } |
||
110 | if ($other->hasPossibleNumberPattern()) { |
||
111 | $this->setPossibleNumberPattern($other->getPossibleNumberPattern()); |
||
112 | } |
||
113 | if ($other->hasExampleNumber()) { |
||
114 | $this->setExampleNumber($other->getExampleNumber()); |
||
115 | } |
||
116 | |||
117 | return $this; |
||
118 | } |
||
119 | |||
120 | /** |
||
121 | * @param PhoneNumberDesc $other |
||
122 | * @return boolean |
||
123 | */ |
||
124 | 1 | public function exactlySameAs(PhoneNumberDesc $other) |
|
130 | |||
131 | /** |
||
132 | * @return array |
||
133 | */ |
||
134 | public function toArray() |
||
149 | |||
150 | /** |
||
151 | * @param array $input |
||
152 | * @return PhoneNumberDesc |
||
153 | */ |
||
154 | 865 | public function fromArray(array $input) |
|
168 | } |
||
169 |