Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save caseyw/9be5025d618f30e08b59 to your computer and use it in GitHub Desktop.

Select an option

Save caseyw/9be5025d618f30e08b59 to your computer and use it in GitHub Desktop.
PhpStorm - PHP Getter Method Config Template
/**
* @TODO Comment this!
*
#if (${TYPE_HINT} == "int")
* @return integer
#else
* @return ${TYPE_HINT}
#end
*/
#if (${TYPE_HINT} == "boolean")
public ${STATIC} function is${NAME}()
#else
public ${STATIC} function get${NAME}()
#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