Search code examples
interfacephpstorminterface-implementation

How to auto-generate methods of the implemented interface


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.


Solution

  • From my comment: You could try ALT + ENTER. This normaly shows up a small "dialog" to autogenerate phpdoc, functions, etc.