1
Hello I have a question on how to use the Strategy standard in php.
How could I type a variable in php so that it is an interface as it is done in java
Waltever variavel
, whose interface is Whatever?
because I have several classes that implement this interface and in my abstract class I can from some method type a variable as an interface so that I can in another class that extends the abstract class and instantiation in the variable any class that ultilize the interface?
or it’s actually better not to use PHP’s Strategy interface.