Created
June 9, 2014 15:29
-
-
Save caseyw/9be5025d618f30e08b59 to your computer and use it in GitHub Desktop.
PhpStorm - PHP Getter Method Config Template
This file contains hidden or 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
| /** | |
| * @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