Last active
January 21, 2021 11:10
-
-
Save kunicmarko20/9b21253ea86a49c94e3fba4b1de5fb54 to your computer and use it in GitHub Desktop.
PHPStorm code template for getters without `get` prefix and first letter decapitalized
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 ${STATIC} function ${FIELD_NAME}()#if(${RETURN_TYPE}): ${RETURN_TYPE}#end | |
{ | |
#if (${STATIC} == "static") | |
return self::$${FIELD_NAME}; | |
#else | |
return $this->${FIELD_NAME}; | |
#end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment