Idiom
give notice to someonegive notice (to someone)
1.
to warn your employer that you will stop working.
Jones gave notice in October that he planned to leave at the end of the school year.
2.
to tell an employee that they will no longer be employed.
The company didn't give its employees notice, they just sent everyone home and closed the plant.
Etymology: based on the literal meaning of give notice (= to give written or printed information)