Example #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 Noticias();
     $cloned->setIdNoticia($this->idNoticia);
     $cloned->setTitulo($this->titulo);
     $cloned->setContenido($this->contenido);
     return $cloned;
 }