Guest User

Untitled

a guest
May 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. class bean{
  2.  
  3. private $id = NULL;
  4. private $dataCadastro = NULL;
  5. private $data = NULL;
  6. private $dataFinal = NULL;
  7. private $tipo = NULL;
  8. private $idUnidade = NULL;
  9. private $idPai = NULL;
  10. private $promocao = NULL;
  11.  
  12. public function __clone(){
  13.         $agenda = new Agenda();
  14.         $agenda->setDataCadastro($this->dataCadastro);
  15.         $agenda->setIdPai($this->idPai);
  16.         $agenda->setIdUnidade($this->idUnidade);
  17.         $agenda->setPromocao($this->promocao);
  18.         $agenda->setTipo('bloqueado');
  19.         return $agenda;
  20.     }
  21.  
  22. }
Add Comment
Please, Sign In to add comment