這是this question的第二部分。 在我的項目,我有以下接口: interface ISoapInterface {
public static function registerSoapTypes(wsdl &$wsdl);
public static function registerSoapOperations(NuSoapServer &$server);
這裏是我處理的類的一個簡化版本 class A {
static protected function getVal() {
return self::$valB;
}
}
class B extend A {
static protected $valB = 'Hello';
}
B::getVal(); // Hello
如若這項工