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 or press Ctrl+I. You can also right-click anywhere in the class file, then click Generate Alt+Insert, and select Implement methods.In the dialog that opens, select the methods to implement. 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.
Last modified: 26 August 2021