Implement methods of an interface or abstract class
If a class is declared as implementing a certain interface or extending a class with abstract methods, it has to implement the methods of such interface or class. PhpStorm creates stubs for implemented methods .
Implement required methods
By default, the classes that do not implement the required methods are detected by the Class hierarchy checks code inspection and highlighted in the editor.
Click the light bulb icon or press Alt+Enter and select Add method stubs.
Alternatively, from the main menu, select Generate Alt+Insert, and select Implement methods.or press Control+I. You can also right-click anywhere in the class file, then click
In the dialog that opens, select the methods to implement (hold the Shift or Ctrl key to perform a multi-selection). The list does not include the methods that are already implemented or cannot be accessed from the current class. The methods that are required for the current class are selected by default. If necessary, select the Add PHPDoc checkbox to insert PHPDoc comments for the implemented methods and choose the desired PHPDoc.