As long as you are wielding a glaive, halberd, quarterstaff, or spear (and attacking only with that, so if you multi-class into monk and make an unarmed strike or something weird it wouldn't apply) you get to make an opportunity attack when an opponent enters your reach.
Of course, your DM has...