Strange observer pattern implementation in PHP to observe any objects