Пример #1
0
 /**
  * Clone will return identical deep copy of this valueObject.
  * Note, that this method is different than the clone() which
  * is defined in java.lang.Object. Here, the retuned cloned object
  * will also have all its attributes cloned.
  */
 function cloneObject()
 {
     $cloned = new Artesano();
     $cloned->setIdArtesano($this->idArtesano);
     $cloned->setTipoDoc($this->TipoDoc);
     $cloned->setNroDoc($this->NroDoc);
     $cloned->setPassword($this->password);
     $cloned->setDireccion($this->direccion);
     $cloned->setTelefono($this->telefono);
     $cloned->setTelefono2($this->telefono2);
     $cloned->setUsername($this->username);
     $cloned->setEstado($this->estado);
     $cloned->setNombre($this->nombre);
     $cloned->setCelular($this->celular);
     $cloned->setEmail($this->email);
     $cloned->setCertificacion($this->certificacion);
     $cloned->setNivelestudio($this->nivelestudio);
     $cloned->setAprendices($this->aprendices);
     $cloned->setCursos($this->cursos);
     $cloned->setFormatofoto($this->formatofoto);
     return $cloned;
 }