Preheat the oven to 200C.
Put the chicken, onion, garlic and broccoli into a pie dish. Drizzle with the oil and toss to coat everything. Bake for 30 minutes.
While this is cooking, put the cornflour into a small bowl and add a little of the stock (just a spoon or two) and stir until it forms a smooth paste. Now add the paste back to the rest of the stock, and combine with the cream, mustard and plenty of salt and pepper. Mix well. (See notes.)
Remove the chicken and vegetables from the oven, add the ham and pour over the 'sauce'.
Carefully top with the pastry (the pan will be hot - you'll need to work quickly or the pastry will start to melt!) Brush the pastry with beaten egg. Prick a few holes in the top.
Return to the oven for 20-25 minutes until the pastry is golden and the chicken inside is cooked through.
