Use getters/setters for menu attributes

See: https://github.com/fisharebest/webtrees/commit/231488661263cd50570c97d1f5b4fbf4d11ceca8