标签: php
我想将多个类型化对象传递给对象构造函数。
我知道可以做__construct(... $ data)但这需要数组。我想确保注入指定的接口并执行类似__construct(... Interface $ interface)的操作。
有办法吗?
感谢您的帮助。