Skip to content

Instantly share code, notes, and snippets.

@tacovandenbroek
Created April 15, 2014 11:54
Show Gist options
  • Save tacovandenbroek/10726150 to your computer and use it in GitHub Desktop.
Save tacovandenbroek/10726150 to your computer and use it in GitHub Desktop.
/**
* @param ${TYPE_HINT} $${PARAM_NAME}
#if (${STATIC} != "static")
* @return $this
#end
*/
public ${STATIC} function set${NAME}($${PARAM_NAME})
{
#if (${STATIC} == "static")
self::$${FIELD_NAME} = $${PARAM_NAME};
#else
$this->${FIELD_NAME} = $${PARAM_NAME};
return $this;
#end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment