Useful Observer pattern implementation on PHP