Crypt/GPG/KeyGenerator.php
protected function getUserId($name, $email = '', $comment = '')
    {
        if ($name instanceof Crypt_GPG_UserId) {
            $userId = $name;
        } else {
            $userId = new Crypt_GPG_UserId();
            $userId->setName($name)->setEmail($email)->setComment($comment);
        }

        return $userId;
    }
protected function getUserId($name, $email = '', $comment = '')
    {
        if ($name instanceof Crypt_GPG_UserId) {
            $userId = $name;
        } else {
            $userId = new Crypt_GPG_UserId();
            $userId->setName($name)->setEmail($email)->setComment($comment);
        }

        return $userId;
    }
Gets a user id object from parameters

@param string|Crypt_GPG_UserId $name    either a {@link Crypt_GPG_UserId}
object, or a string containing
the name of the user id.
@param string                  $email   optional. If <i>$name</i> is
specified as a string, this is
the email address of the user id.
@param string                  $comment optional. If <i>$name</i> is
specified as a string, this is
the comment of the user id.

@return Crypt_GPG_UserId a user id object for the specified parameters.