You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Star me if you like it. ^.^ You can use this tool with PHPStorm to create nice classes.
14
14
15
15
Install the package in development dependencies:
16
16
@@ -123,6 +123,27 @@ class Author
123
123
124
124
````
125
125
126
+
## PHPStorm
127
+
128
+
If you are using PHPStorm and you want to put `return $this` in each set function.
129
+
130
+
Open PhpStorm's Preferences and "File and Code Templates" menu, under the "Code" tab there's an option called "PHP Setter Method". Modify it to look like this:
131
+
132
+
````php
133
+
/**
134
+
* @param ${TYPE_HINT} $${PARAM_NAME}
135
+
* @return ${CLASS_NAME}
136
+
*/
137
+
public ${STATIC} function set${NAME}($${PARAM_NAME})
0 commit comments