public function changeEmail($email) { if ($email !== $this->email) { $this->email = $email; $this->raise(new UserEmailWasChanged($this)); } return $this; }