public function alterar(Contato $objContato) { try { $this->_stat = $this->_getConn()->prepare('UPDATE tblcontato SET con_nome = :con_nome, con_email = :con_email, con_telefone = :con_telefone, con_observacao = :con_observacao, con_status = :con_status WHERE con_id = :con_id'); $this->_stat->bindValue(':con_id', $objContato->getId(), \PDO::PARAM_INT); $this->_stat->bindValue(':con_nome', $objContato->getNome(), \PDO::PARAM_STR); $this->_stat->bindValue(':con_email', $objContato->getEmail(), \PDO::PARAM_STR); $this->_stat->bindValue(':con_telefone', $objContato->getTelefone(), \PDO::PARAM_STR); $this->_stat->bindValue(':con_observacao', $objContato->getObservacao(), \PDO::PARAM_STR); $this->_stat->bindValue(':con_status', $objContato->getStatus(), \PDO::PARAM_INT); $this->_stat->execute(); return true; } catch (\PDOException $e) { throw new \model\conexao\Excecao($e->getMessage()); } }