Skip to content

Instantly share code, notes, and snippets.

@diego-mi
Created August 4, 2015 21:00
Show Gist options
  • Save diego-mi/2cfdc003fe9ef1116a86 to your computer and use it in GitHub Desktop.
Save diego-mi/2cfdc003fe9ef1116a86 to your computer and use it in GitHub Desktop.
<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