Skip to content

Instantly share code, notes, and snippets.

@diego-mi
Last active August 29, 2015 14:26
Show Gist options
  • Save diego-mi/7b74e868978a59ebc0ae to your computer and use it in GitHub Desktop.
Save diego-mi/7b74e868978a59ebc0ae to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
/**
* @var ${1:integer}
*
* @ORM\Column(name="${2:NOME_NO_BD}", type="${1:integer}", nullable=${3:false})
*/
${4:private} \$${5:nomeCampo};
/**
* Get ${5:nomeCampo}
*
* @return ${1:integer}
*/
public function get${6:NomeCampoCamelCase}()
{
return \$this->${5:nomeCampo};
}
/**
* Set ${5:nomeCampo}
*
* @param ${1:integer} \$${5:NomeCampo}
* @return ${5:nomeCampo}
*/
public function set${6:NomeCampoCamelCase}(\$${5:nomeCampo})
{
\$this->${5:nomeCampo} = \$${5: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