Permalink
Browse files

Merge pull request #2 from Stubbs/master

Fixes for the getset snippet.
  • Loading branch information...
2 parents 09f2fc5 + bdb10b1 commit 94b6ec119c0c3676c64ffba734a257b3f4cd5565 @stuartherbert committed Oct 12, 2012
Showing with 6 additions and 9 deletions.
  1. +6 −9 php-getset.sublime-snippet
View
15 php-getset.sublime-snippet
@@ -26,23 +26,20 @@
<content><![CDATA[
/**
- * [get${1/(.*)/\u$1/:[ Prop name ]}() description here]
+ * ${2:[description here]}
*
- * @return [type] [description]
+ * @return ${3:[type]} ${4:[description]}
*/
-public function get${1/(.*)/\u$1/:[ Prop name ]}()
-{
+public function get${1/(.*)/\u$1/:[ Prop name ]}() {
return \$this->${1:[ Prop name ]};
}
/**
- * [set${1/(.*)/\u$1/:[ Prop name ]}() description here]
+ * ${5:[Description]}
*
- * @param [type] \$${1:[ Prop name ]} [description]
- * @return [class type] \$this
+ * @param ${3/(.*)/\u$1/:[type]} \$new${1:[ Prop name ]} ${4/(.*)/\u$1/:[description]}
*/
-public function set${1/(.*)/\u$1/:[ Prop name ]}(\$${1/(.*)/$1/:[ Prop name ]})
-{
+public function set${1/(.*)/\u$1/:[ Prop name ]}(\$${1/(.*)/$1/:[ Prop name ]}) {
\$this->${1:[Prop name ]} = \$${1/(.*)/$1/:[ Prop name ]};
return \$this;

0 comments on commit 94b6ec1

Please sign in to comment.