add anotation, get and set snippet, good for doctrine
This commit is contained in:
parent
12f2641e9d
commit
16b958ccd3
@ -352,6 +352,26 @@ snippet gs
|
|||||||
$this->$4 = $$1;
|
$this->$4 = $$1;
|
||||||
return $this;
|
return $this;
|
||||||
}${8}
|
}${8}
|
||||||
|
# anotation, get, and set, useful for doctrine
|
||||||
|
snippet ags
|
||||||
|
/**
|
||||||
|
* ${1:description}
|
||||||
|
*
|
||||||
|
* @ORM\Column(type="{7:string}")
|
||||||
|
*/
|
||||||
|
${2:protected} $${3:foo};
|
||||||
|
|
||||||
|
public function get${4:$3}()
|
||||||
|
{
|
||||||
|
return $this->$3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function set$4(${5:$4 }$${6:$3})
|
||||||
|
{
|
||||||
|
$this->$3 = $$6;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
snippet rett
|
snippet rett
|
||||||
return true;
|
return true;
|
||||||
snippet retf
|
snippet retf
|
||||||
|
Loading…
Reference in New Issue
Block a user