/** * (PHP 5 >= 5.1.0)<br/> * Receive update from subject * @link http://php.net/manual/en/splobserver.update.php * @param SplSubject|SDElement $subject <p> * The <b>SplSubject</b> notifying the observer of an update. * </p> * @return void */ public function update(SplSubject $subject) { $type = $subject->getContext()->getType($this->name); if ($type) { $this->type = $type; } }