Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class bean{
- private $id = NULL;
- private $dataCadastro = NULL;
- private $data = NULL;
- private $dataFinal = NULL;
- private $tipo = NULL;
- private $idUnidade = NULL;
- private $idPai = NULL;
- private $promocao = NULL;
- public function __clone(){
- $agenda = new Agenda();
- $agenda->setDataCadastro($this->dataCadastro);
- $agenda->setIdPai($this->idPai);
- $agenda->setIdUnidade($this->idUnidade);
- $agenda->setPromocao($this->promocao);
- $agenda->setTipo('bloqueado');
- return $agenda;
- }
- }
Add Comment
Please, Sign In to add comment