Cook the macaroni al dente in sufficient salted water.
Finely dice the onion and garlic. Divide the broccoli into small pieces and cook until al dente. Dice the boiled ham.
Then heat the oil in a pan, sauté the onion and garlic, add the broccoli and ham and sauté briefly.
Mix the pasta with the tomatoes, broccoli and ham. Pour into a greased 26 cm springform pan.
Mix the eggs, cream and half of the grated cheese, season with salt and pepper and pour over the pasta. Sprinkle with the rest of the cheese and bake for about 35 minutes at 175 degrees. Place the baking pan on parchment paper in case it spills a little.