class One {
public function testOne() {
echo 'I am One';
}
}
class Two extends One {
public function testTwo() {
echo 'I am Two';
}
}
class Three extends Two {
public function testThree() {
echo 'I am Three';
}
public function test() {
self::testOne();
echo '<br />';
self::testTwo();
echo '<br />';
self::testThree();
}
}
$obj = new Three();
$obj->test();