From a81b5bce7de7082b63be587378560624f9b3217e Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 3 May 2022 21:25:33 +0200 Subject: [PATCH] update snippets --- vim/UltiSnips/php.snippets | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/vim/UltiSnips/php.snippets b/vim/UltiSnips/php.snippets index bfc46ac..1e77222 100644 --- a/vim/UltiSnips/php.snippets +++ b/vim/UltiSnips/php.snippets @@ -41,26 +41,14 @@ $1 endsnippet snippet gs "Getter and setter" -/** - * Set the value of "$1". - * - * @param $2 \$$1 - * - * @return $3 - */ -public function set${1/\w+\s*/\u$0/g}(\$$1) +public function set${1/\w+\s*/\u$0/g}($2 \$$1): $3 { $this->$1 = \$$1; return \$this; } -/** - * Get the value of "$1". - * - * @return $2 - */ -public function get${1/\w+\s*/\u$0/g}() +public function get${1/\w+\s*/\u$0/g}(): $2 { return \$this->$1; }