public static function confirmarOrcamento() { $vendaDao = new VendaDao(); $id_venda = $_POST['id_venda']; if (!$vendaDao->confirmarOrcamento($id_venda)) { Flight::halt(500, 'error confirmar o orçamento'); } Flight::halt(200); }