Пример #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 Cursos();
     $cloned->setId($this->id);
     $cloned->setFoto($this->foto);
     $cloned->setDescripcion($this->descripcion);
     $cloned->setFecha_lim($this->fecha_lim);
     $cloned->setHorario($this->horario);
     return $cloned;
 }