Skip to content

Instantly share code, notes, and snippets.

@dator-zz
Created December 29, 2010 10:12
Show Gist options
  • Save dator-zz/758389 to your computer and use it in GitHub Desktop.
Save dator-zz/758389 to your computer and use it in GitHub Desktop.
textmate snippet, Symfony2 entities/documents getter/setter
/**
* 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