new hookInterface('接口名称');在hookInterface的构造器内找到“接口名称”的实现类
Interface a{ Function toWake(); Function toSleep(); } Interface b extends a{//a的子接口 Function toWake1(); Function toSleep1(); }Class ClassName implements a,?,?,?{ function aa(){ //在這裡得到a和b的類? } }是这样吗?看起来太绕了,很有难度乃!!!
Function toWake();
Function toSleep();
}
Interface b extends a{//a的子接口
Function toWake1();
Function toSleep1();
}Class ClassName implements a,?,?,?{
function aa(){
//在這裡得到a和b的類?
}
}是这样吗?看起来太绕了,很有难度乃!!!
或者你就在所有你的类的基类的__construct里面对一个全局数组进行注册?