I'm not sure at all if there is such a term but here is what I want to do
class A {
function a($a) {
return $a;
}
}
class B extends A {
function a($a) {
return parent::a('B' . $a);
}
}
class C extends B {
function a($a) {
return superparent::a('C' . $a);
}
}
$c = new C();
echo $c->a('C'); // "CC"
I want to bypass all medial classes and call the function on the parent where it was defined for the first time - is this possible?