In PHP since the interface benefits can used by passing as parameter mentioning the Interface name something like
public function foo (Abc $abc){}
where Abc is an interface.But how do I pass an array of these interfaces?
Please note this not class but interface and only way to get advantage of interface is passing as function with type hinting
Vector<Abc>to type hint a Vector (zero indexed list). Sadly PHP itself doesn't offer this afaik, at least not yet. You could hack your way around it though: ensure you are working with "Array of Foo"