diff --git a/snippets/php-mode/get b/snippets/php-mode/get new file mode 100644 index 000000000..b97d4c3fd --- /dev/null +++ b/snippets/php-mode/get @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: Robin de Rooij +# name: get +# key: get +# group: definitions +# -- +public function get${1:$(capitalize yas-text)}() +{ + return \$this->$1; +} \ No newline at end of file diff --git a/snippets/php-mode/set b/snippets/php-mode/set new file mode 100644 index 000000000..60e2211dc --- /dev/null +++ b/snippets/php-mode/set @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: Robin de Rooij +# name: set +# key: set +# group: definitions +# -- +public function set${1:$(capitalize yas-text)}(\$$1) +{ + \$this->$1 = $1; +} \ No newline at end of file