Skip to content

Instantly share code, notes, and snippets.

@Geraint
Last active December 22, 2015 07:38
Show Gist options
  • Save Geraint/6439119 to your computer and use it in GitHub Desktop.
Save Geraint/6439119 to your computer and use it in GitHub Desktop.
Eclipse Template - getset
/** @var ${type} */
private $$${property};
/**
* Returns the ${property} value.
*
* @return ${type}
*/
public function get${propertyCapital}()
{
return $$this->${property};
}
/**
* Set the ${property} value.
*
* @param ${type} $$${property}
* @return self
*/
public function set${propertyCapital}($$${property})
{
$$this->${property} = $$${property};
return $$this;
}
${cursor}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment