public function enableAccount()
    {
        $this->confirmationToken = null;
        $this->updatedOn = new \DateTimeImmutable();

        $this->publish(
            new UserEnabled(
                $this->id,
                $this->email
            )
        );
    }
public function enableAccount()
    {
        $this->confirmationToken = null;
        $this->updatedOn = new \DateTimeImmutable();

        $this->publish(
            new UserEnabled(
                $this->id,
                $this->email
            )
        );
    }
public function enableAccount ( ) { $ this -> confirmationToken = null ; $ this -> updatedOn = new \ DateTimeImmutable ( ) ; $ this -> publish ( new UserEnabled ( $ this -> id , $ this -> email ) ) ; }
Enables the user account.
Enables the user account .