Php SPL observer pattern example