简体   繁体   English

PhpStorm:在所有类中实现新的接口函数

[英]PhpStorm: Implementing a new interface function in ALL classes

In this answer there is a shortcut to implement interfaces in a class.这个答案中有一个在类中实现接口的快捷方式。

Thank you for @Adi Priyanto answer, it is perfect for a one time generation.谢谢@Adi Priyanto 的回答,它非常适合一代人。 Is there a way to do this for multiple files at one time?有没有办法一次对多个文件执行此操作?

I have a Factory Interface and a LOT of files implementing it.我有一个工厂接口和很多实现它的文件。 Adding a method to the interface is PITA if I have to generate them one by one in the files.如果非要在文件中一一生成的话,给接口添加一个方法就是PITA。

Not possible at the moment.暂时不可能。

https://youtrack.jetbrains.com/issue/WI-28273 -- watch this ticket (star/vote/comment) to get notified on any progress. https://youtrack.jetbrains.com/issue/WI-28273——观看这张票(明星/投票/评论)以获取任何进展的通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM