Metaregistrar\EPP\eppInfoDomainRequest::__construct PHP Метод

__construct() публичный Метод

eppInfoDomainRequest constructor.
public __construct ( $infodomain, null $hosts = null, $namespacesinroot = true )
$infodomain
$hosts null
    public function __construct($infodomain, $hosts = null, $namespacesinroot = true)
    {
        $this->setNamespacesinroot($namespacesinroot);
        parent::__construct(eppRequest::TYPE_INFO);
        if ($infodomain instanceof eppDomain) {
            $this->setDomain($infodomain, $hosts);
        } else {
            throw new eppException('parameter of infodomainrequest needs to be eppDomain object');
        }
        $this->addSessionId();
    }