No member of Congress or any person holding any office or appointment of profit or trust under the Federal Government or any person holding the office of magisterial district judge may at the same time be capable of holding the office of mayor.
8 Pa.C.S. § 10A02