Last active
May 25, 2020 21:50
-
-
Save tillklockmann/83ceca8e23717dadd737346e22d0eae8 to your computer and use it in GitHub Desktop.
php snippets for visual studio code
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
{ | |
"Class Constructor": { | |
"prefix": "_con", | |
"body": [ | |
"protected $$1;\n", | |
"public function __construct($$1)", | |
"{", | |
"\t $$this->$1 = $$1;", | |
"}", | |
], | |
"description": "new public method" | |
}, | |
"Public Method": { | |
"prefix": "met", | |
"body": [ | |
"public function $1($2)", | |
"{", | |
"\t$3", | |
"}", | |
], | |
"description": "new public method" | |
}, | |
"Protected Method": { | |
"prefix": "pmet", | |
"body": [ | |
"protected function $1($2)", | |
"{", | |
"\t$3", | |
"}", | |
], | |
"description": "new protected method" | |
}, | |
"Class Definition": { | |
"prefix": "kla", | |
"body": [ | |
"class ${TM_FILENAME_BASE}", | |
"{", | |
"\t$0", | |
"}", | |
], | |
"description": "new class definition", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment