Level 75
First read about interfaces, https://www.php.net/manual/en/language.oop5.interfaces.php
But an interface is not always needed it's up to you.
1 like
I am curious to know are we really need to create interface class for service even when i just have a execute() function in my service class?
If yes, what's the reason to create interface for the service class?
When are we going to create an interface class for service?
Please or to participate in this conversation.