I have the following class
class InterfaceImplementation{
public function __construct(ServiceInterface $oService){
$this->oService = $oService;
}
}
When I create the class object
$obj = new InterfaceImplementation();
How to pass the interface instance?And is this the correct way to code?