(a) The city council shall appoint a city attorney who shall be a member of the State Bar of Georgia and shall have actively practiced law for at least five years. The city attorney shall serve at the pleasure of the city council. The city attorney shall be responsible for representing and defending the city in all litigation in which the city is a party; may be the prosecuting officer in the municipal court; shall advise the city council, mayor, and other officers and employees of the city concerning legal aspects of the city's affairs; and shall perform such duties as may be required of him or her by virtue of his or her position as city attorney. The city council shall provide for the compensation of the city attorney. (b) The city attorney shall be removed or suspended from duty only by a vote of four councilmembers. If permanently removed from duty, the city attorney shall be paid forthwith the salary and accumulated annual leave due and city attorney's salary for the next three months following the adoption of a resolution for removal. If the city attorney is removed for malfeasance, misfeasance, or nonfeasance in the office, the salary of the city attorney for the next three months shall not be paid.