public static function chageVendedor() { $VendaDao = new VendaDao(); $id_empreendimento = $_POST['id_empreendimento']; $id_vendedor = $_POST['id_vendedor']; $senha_vendedor = $_POST['senha_vendedor']; $result = $VendaDao->chageVendedor($id_empreendimento, $id_vendedor, $senha_vendedor); if (is_array($result)) { if (count($result) == 1) { Flight::halt(200); } else { Flight::halt(404); } } else { Flight::halt(500, 'erro ao excluir orçamento'); } }