Is there a way in PhpStorm to automatically generate the empty methods that are required by the interface the given class is implementing?
Say we have an Interface with 3 methods - when defining the new class that implements this interface - some option to auto-generate containers for all required methods.
Sure, you can.
There are 3 ways to do it :
Ctrl + I
Code --> Implement Methods
Generate --> Implement Methods
After that, you can select one or some method(s), then click OK.
From my comment: You could try ALT + ENTER. This normaly shows up a small "dialog" to autogenerate phpdoc, functions, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With