I have an interface in PHP
interface IDummy{ public function DoSomething(); }
I have another class that implements this interface.
class Dummy implements IDummy{ public function DoSomething(){ }
How can I type a Dummy Object IDummy object in PHP so that I can name it
$dum = new Dummy(); $instance = (IDummy)$dum; $instance->DoSomething();
Can I do this in PHP?
Thanks and Regards Abishek R. Srikanant
source share