Created
December 29, 2010 10:12
-
-
Save dator-zz/758389 to your computer and use it in GitHub Desktop.
textmate snippet, Symfony2 entities/documents getter/setter
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
/** | |
* Set $1 | |
* @return null | |
*/ | |
public function set${1/./\u$0/}(\$$1) | |
{ | |
\$this->${1/./\l$0/} = \$${1/./\l$0/}; | |
} | |
/** | |
* Get $1 | |
*/ | |
public function get${1/./\u$0/}() | |
{ | |
return \$this->${1/./\l$0/}; | |
} | |
$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment