Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Сниппет для создания геттеров/сеттеров в Sublime Text 3. Вызывается через gs [tab]
public function get${1/(?:^|_)(\w)/\U$1$2/g$1}()
return \$this->$1;
* @return self
public function set${1/(?:^|_)(\w)/\U$1$2/g$1}(\$${1/_(\w)/\U$1/g$1})
\$this->$1 = \$${1/_(\w)/\U$1/g$1};
return \$this;
<!-- Optional: Tab trigger to activate the snippet -->
<!-- Optional: Scope the tab trigger will be active in -->
<!-- Optional: Description to show in the menu -->
<description>Create getter and setter methods</description>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment