Ejemplo n.º 1
0
 /**
  * @param PhoneNumberDesc $other
  * @return PhoneNumberDesc
  */
 public function mergeFrom(PhoneNumberDesc $other)
 {
     if ($other->hasNationalNumberPattern()) {
         $this->setNationalNumberPattern($other->getNationalNumberPattern());
     }
     if ($other->hasPossibleNumberPattern()) {
         $this->setPossibleNumberPattern($other->getPossibleNumberPattern());
     }
     if ($other->hasExampleNumber()) {
         $this->setExampleNumber($other->getExampleNumber());
     }
     return $this;
 }