I have 3 classes
class Header
{
public function _after_save ()
{
}
}
class Line extends Header
{
}
class Details extends Line
{
}
Line extends header and Details extend line. Header has a function which ‘ll be called many pages in my site & I have made it public. I don’t want when Line and Details class to call the function _after_save() to execute but it’s getting executed as are extended classes. I can’t make the function protected for obvious reasons. Any help how I can achieve this