public function addObserver(observer $observer) { $this->observers->attach($observer); return $this; }