Suppose I have this classes
<?php
class Grandparent {
public function myMethod($param) {
//do something
}
}
class Parent extends Grandparent {
public function myMethod($param) {
//do something
return parent::myMethod($param) ;
}
}
class Son extents Parent {
public function myMethod($param) {
//do something
//code to access parent parent
}
}
?>
I want in myMethod of Son class to avoid call his parent and access to this grandparent. The code I tried was parent::parent::myMethod($param) but and the Ide throws me an error. Which is the way to access in a static way to grandparent with out passing through parent?
Is there any posibilities? I know there are some methods like get_parent_class, but I dont want them to use it. I need to call in static way.