public function activate() { if ($this->is_activated !== true) { $this->is_activated = true; $this->raise(new UserWasActivated($this)); } return $this; }