From faa4bb490e5723cc236c8984beea51b94bcefc08 Mon Sep 17 00:00:00 2001 From: chrisyue Date: Mon, 30 Jul 2012 16:19:03 +0800 Subject: [PATCH] add setter and getter --- snippets/php.snippets | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/snippets/php.snippets b/snippets/php.snippets index e49065f..d6d6bae 100644 --- a/snippets/php.snippets +++ b/snippets/php.snippets @@ -26,7 +26,7 @@ snippet i ${2} } snippet $t - $this->${1:foo}${2} + $this->${1} snippet f function ${1:foo}(${2:array }${3:$bar}) { @@ -56,6 +56,12 @@ snippet gm { return $this->${3:$2}; } +#setter +snippet $s + ${1:$foo}->set${2:Bar}(${3}); +#getter +snippet $g + ${1:$foo}->get${2:Bar}(); snippet C $_COOKIE['${1:variable}']${2} snippet E