rub off on
Become transferred to another, influence through close contact,.
1.George's dedication as a teacher rubs off on his students.
2.Peter's been very unruly lately. I think that new kid is rubbing off on him.
required by rule or law
1.Attendance is mandatory.
2. It's mandatory to pay taxes.