You are here

Method Naming Conventions

Subscribe to Syndicate
  • Methods are named with camel case beginning with a lower-case letter. E.g. $myMethod
  • A method used for a button behavior should begin with $clickBtn. E.g. $clickBtnBuyTicket
  • getter methods should start with $get (eg $getCurrentColour)
  • setter methods should start with $set (eg $setCurrentColour)
  • group similar function methods under a dummy header method with a name that starts with some ---- eg '---- Window Open Methods ----'