Created
August 4, 2015 21:00
-
-
Save diego-mi/2cfdc003fe9ef1116a86 to your computer and use it in GitHub Desktop.
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
<snippet> | |
<content><![CDATA[ | |
/** | |
* Get ${1:nomeCampo} | |
* | |
* @return ${1:integer} | |
*/ | |
public function get${2:NomeCampoCamelCase}() | |
{ | |
return \$this->${1:nomeCampo}; | |
} | |
/** | |
* Set ${1:nomeCampo} | |
* | |
* @param ${1:integer} \$${1:NomeCampo} | |
* @return ${1:nomeCampo} | |
*/ | |
public function set${2:NomeCampoCamelCase}(\$${1:nomeCampo}) | |
{ | |
\$this->${1:nomeCampo} = \$${1:nomeCampo}; | |
return \$this; | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>setGet</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.php</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment