src/User/User.php
public function changeEmail($email)
    {
        if ($email !== $this->email) {
            $this->email = $email;

            $this->raise(new EmailChanged($this));
        }

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

            $this->raise(new EmailChanged($this));
        }

        return $this;
    }
public function changeEmail ( $ email ) { if ( $ email !== $ this -> email ) { $ this -> email = $ email ; $ this -> raise ( new EmailChanged ( $ this ) ) ; } return $ this ; }
Change the user's email.

@param string $email
@return $this
Change the user s email .