Last active
August 7, 2020 18:03
-
-
Save webarchitect609/5d703737986673d6a37d438d1dfc4314 to your computer and use it in GitHub Desktop.
Bitrix Getter PhpStorm Live Template (Demo version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function get$NAME$(): $TYPE$ | |
{ | |
return ($TYPE$)$this->PROPERTY_$START$_VALUE; | |
} | |
$END$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name Expression Default Value Skip if defined | |
START | |
TYPE enum("string", "array", "int", "float", "bool") | |
NAME capitalize(camelCase(substringBefore(START, "_VALUE"))) true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment