update snippets
This commit is contained in:
parent
0281a6a11e
commit
a81b5bce7d
|
@ -41,26 +41,14 @@ $1
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet gs "Getter and setter"
|
snippet gs "Getter and setter"
|
||||||
/**
|
public function set${1/\w+\s*/\u$0/g}($2 \$$1): $3
|
||||||
* Set the value of "$1".
|
|
||||||
*
|
|
||||||
* @param $2 \$$1
|
|
||||||
*
|
|
||||||
* @return $3
|
|
||||||
*/
|
|
||||||
public function set${1/\w+\s*/\u$0/g}(\$$1)
|
|
||||||
{
|
{
|
||||||
$this->$1 = \$$1;
|
$this->$1 = \$$1;
|
||||||
|
|
||||||
return \$this;
|
return \$this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function get${1/\w+\s*/\u$0/g}(): $2
|
||||||
* Get the value of "$1".
|
|
||||||
*
|
|
||||||
* @return $2
|
|
||||||
*/
|
|
||||||
public function get${1/\w+\s*/\u$0/g}()
|
|
||||||
{
|
{
|
||||||
return \$this->$1;
|
return \$this->$1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue