attach($subject); } public function update() { print 'ConcreteObserver::update()'; $this->state = $this->subject->getState(); } } ?>