function __construct($createinfo) { parent::__construct($createinfo); if ($createinfo instanceof eppContact) { $this->setContact($createinfo); } else { throw new eppException('createinfo must be of type eppContact on eppCreateContactRequest'); } $this->addSessionId(); }
function __construct($createinfo, $forcehostattr = false) { parent::__construct($createinfo); if ($createinfo instanceof eppDomain) { $this->setForcehostattr($forcehostattr); $this->setDomain($createinfo); } else { throw new eppException('createinfo must be of type eppDomain on eppCreateDomainRequest'); } $this->addSessionId(); }