Forum:Rulings?

When a player declares the end of a phase like main phase and battle phase... Who has the priority the turn player or the opponent?