In PHP, if you have a number of static classes, how do you make sure the called class ends up calling a method back in the calling class?
It's a complicated question, so let me clarify it with an example. Let's say I have the following classes:
Dog (extends Pet)
Newfoundland (extends Dog)
Cat (extends Pet)
MaineCoon (extends Cat)