No officer, employee, attorney or agent of any corporation, company or association doing business under, or by virtue of any municipal charter or franchise, shall be eligible to or permitted to hold any municipal office, in the municipality granting such charter or franchise.