public static function deleteEmpreendimento($id) { $EstoqueDao = new EstoqueDao(); if (is_numeric($id)) { if ($EstoqueDao->deleteEmpreendimento($id)) { Flight::halt(200, ''); } else { Flight::halt(500, 'erro ao excluir'); } } else { Flight::halt(406, 'parametro recusado'); } }