Polearm Master states:
While you are wielding a glaive, halberd, pike, or quarterstaff, other creatures provoke an opportunity attack from you when they enter the reach you have with that weapon.
So if you are wielding a weapon with 10' reach and an enemy starts their turn 10' away, do they provoke the opportunity attack when they move closer to only 5' away?