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

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

eppCreateContactRequest constructor.
public __construct ( eppContact | null $createinfo, $namespacesinroot = true )
$createinfo eppContact | null
    function __construct($createinfo, $namespacesinroot = true)
    {
        $this->setNamespacesinroot($namespacesinroot);
        parent::__construct(eppRequest::TYPE_CREATE);
        if ($createinfo) {
            if ($createinfo instanceof eppContact) {
                $this->setContact($createinfo);
            } else {
                throw new eppException('createinfo must be of type eppContact on eppCreateContactRequest');
            }
        }
        $this->addSessionId();
    }