(a) The board shall retire any member of the fund who has filed with the board his or her voluntary petition in writing for retirement and:
(1) Has or shall have completed twenty-five years of service as a member of the fund (including military service credit granted under the provisions of section twenty-eight of this article);