public function addVersion($version)
{
$this->checkForOptions();
if (!strlen($version)) {
throw new eppException('No version number specified for login attempt');
}
if ($this->options) {
$this->options->appendChild($this->createElement('version', $version));
}
}