Metaregistrar\EPP\eppCreateDomainRequest::__construct PHP Method

__construct() public method

public __construct ( $createinfo, $forcehostattr = false, $namespacesinroot = true )
    function __construct($createinfo, $forcehostattr = false, $namespacesinroot = true)
    {
        $this->setNamespacesinroot($namespacesinroot);
        $this->setForcehostattr($forcehostattr);
        parent::__construct(eppRequest::TYPE_CREATE);
        if ($createinfo instanceof eppDomain) {
            $this->setDomain($createinfo);
        } else {
            throw new eppException('createinfo must be of type eppDomain on eppCreateDomainRequest');
        }
        $this->addSessionId();
    }