File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 25
25
"function __construct" : {
26
26
"prefix" : " con" ,
27
27
"body" : [
28
- " ${1:public} function __construct(${2:${3:Type} \\ $${4:var}${5: = ${6:null}}}) {" ,
29
- " \t\\ $this->${4:var} = \\ $${4:var};$0" ,
28
+ " public function __construct(${1: priarg}) {" ,
30
29
" }"
31
- ]
30
+ ],
31
+ "description" : " Create __construct method using the last php syntax."
32
+ },
33
+ "Private argument" : {
34
+ "prefix" : " priarg" ,
35
+ "body" : [
36
+ " ${1:private} ${2:${3:Type} \\ $${4:var}${5: = ${6:null}}}"
37
+ ],
38
+ "description" : " Private argument to use on __construct method."
39
+ },
40
+ "function __construct (php 7 or lower)" : {
41
+ "prefix" : " con7" ,
42
+ "body" : [
43
+ " public function __construct(${1:${2:Type} \\ $${3:var}${4: = ${5:null}}}) {" ,
44
+ " \t\\ $this->${3:var} = \\ $${3:var};$0" ,
45
+ " }"
46
+ ],
47
+ "description" : " Create a __construct method using syntax <= 7.4."
32
48
},
33
49
"PHPDoc property" : {
34
50
"prefix" : " doc_v" ,
You can’t perform that action at this time.
0 commit comments