Last active
December 22, 2015 07:38
-
-
Save Geraint/6439119 to your computer and use it in GitHub Desktop.
Eclipse Template - getset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @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