Using PHP, how can a class determine if a subclass is overridden if its methods?
Given the following two classes:
class Superclass { protected function doFoo($data) {
How can I add a method to a superclass that will perform different actions depending on which of its methods has been overridden?
For instance:
if ([doFoo is overridden]) {
source share