Skip to content

Instantly share code, notes, and snippets.

@tillklockmann
Last active May 25, 2020 21:50
Show Gist options
  • Save tillklockmann/83ceca8e23717dadd737346e22d0eae8 to your computer and use it in GitHub Desktop.
Save tillklockmann/83ceca8e23717dadd737346e22d0eae8 to your computer and use it in GitHub Desktop.
php snippets for visual studio code
{
"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