Php switch to interface

后端 未结 0 1198
慢半拍i
慢半拍i 2021-02-04 03:12

Is there any way to replace this switch cases with Polymorphism(Interface)? I got a form that has different fields, depending on product type it passes data into db.



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题