Skip to content

Instantly share code, notes, and snippets.

@kunicmarko20
Last active January 21, 2021 11:10
Show Gist options
  • Save kunicmarko20/9b21253ea86a49c94e3fba4b1de5fb54 to your computer and use it in GitHub Desktop.
Save kunicmarko20/9b21253ea86a49c94e3fba4b1de5fb54 to your computer and use it in GitHub Desktop.
PHPStorm code template for getters without `get` prefix and first letter decapitalized
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