Implement Methods of an Interface or Abstract Class
If a class is declared as implementing a certain, it has to implement the methods of such class. PhpStorm creates stubs for,ps implemented methods, with the default return values for the primitive types, and null values for the objects.
To implement required methods:
- On the Generate (Alt+Insert), and select Implement methods. menu, click (Ctrl+I). Alternatively, you can right-click anywhere in the class file, then click
- Select the methods to implement. If necessary, select the Copy PHPDoc check box to insert PHPDoc comments for the implemented interface or abstract class.
- Click OK.