php-mode: fix case in getters and setters (#271)
Fix the case of the getter and setter templates. The previous method "capitalize" turned upper case characters to lower case elsewhere in the string.
This commit is contained in:
parent
829e3b0e22
commit
cdd424df88
|
@ -4,7 +4,7 @@
|
|||
# key: get
|
||||
# group: definitions
|
||||
# --
|
||||
public function get${1:$(capitalize yas-text)}()
|
||||
public function get${1:$(upcase-initials yas-text)}()
|
||||
{
|
||||
return \$this->$1;
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
# key: set
|
||||
# group: definitions
|
||||
# --
|
||||
public function set${1:$(capitalize yas-text)}(\$$1)
|
||||
public function set${1:$(upcase-initials yas-text)}(\$$1)
|
||||
{
|
||||
\$this->$1 = \$$1;
|
||||
}
|
Loading…
Reference in New Issue