public function updateTurno(Voluntario $Voluntario) { $sql = "UPDATE {$this->table} SET manha = :manha, tarde = :tarde, noite = :noite WHERE fk_usuario = :id"; $id = $Voluntario->getFkUsuario(); $manha = $Voluntario->getManha(); $tarde = $Voluntario->getTarde(); $noite = $Voluntario->getNoite(); $stmt = ConnectionFactory::prepare($sql); $stmt->bindParam(':id', $id); $stmt->bindParam(':manha', $manha); $stmt->bindParam(':tarde', $tarde); $stmt->bindParam(':noite', $noite); return $stmt->execute(); }