Skip to content
Browse files

Fixed the getset snippet

  • Loading branch information...
1 parent 05a0bfb commit b231b5f355ecf6fdc5999717eb194362e7cb27a2 @stuartherbert committed Feb 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 php-getset.sublime-snippet
View
8 php-getset.sublime-snippet
@@ -32,18 +32,18 @@
*/
public function get${1/(.*)/\u$1/:[ Prop name ]}()
{
- return \$this->\$${1:[ Prop name ]};
+ return \$this->${1:[ Prop name ]};
}
/**
* [set${1/(.*)/\u$1/:[ Prop name ]}() description here]
*
- * @param \$${1:[ Prop name ]} [description]
+ * @param [type] \$${1:[ Prop name ]} [description]
* @return [class type] \$this
*/
public function set${1/(.*)/\u$1/:[ Prop name ]}(\$new${1/(.*)/\u$1/:[ Prop name ]})
{
- \$this->\$${1:[Prop name ]} = \$new${1/(.*)/\u$1/:[ Prop name ]};
+ \$this->${1:[Prop name ]} = \$new${1/(.*)/\u$1/:[ Prop name ]};
return \$this;
}
]]></content>
@@ -53,4 +53,4 @@ public function set${1/(.*)/\u$1/:[ Prop name ]}(\$new${1/(.*)/\u$1/:[ Prop name
<scope>source.php</scope>
<!-- Optional: Description to show in the menu -->
<description>Create getter and setter methods</description>
-</snippet>
+</snippet>

0 comments on commit b231b5f

Please sign in to comment.
Something went wrong with that request. Please try again.