子クラスの関数を必要とせずにこれを達成しようとしています...これは可能ですか?そうではないと感じていますが、本当に確認したいのですが...
<?php
class A {
public static function who() {
echo __CLASS__;
}
public static function test() {
static::who(); // Here comes Late Static Bindings
}
}
class B extends A {
public static function who() {
echo __CLASS__;
}
}
B::test(); //returns B
?>