Metaregistrar\EPP\eppInfoContactRequest::__construct PHP Method

__construct() public method

public __construct ( $inforequest, $namespacesinroot = true )
    function __construct($inforequest, $namespacesinroot = true)
    {
        $this->setNamespacesinroot($namespacesinroot);
        parent::__construct(eppRequest::TYPE_INFO);
        if ($inforequest instanceof eppContactHandle) {
            $this->setContactHandle($inforequest);
        } else {
            throw new eppException('parameter of infocontactrequest needs to be eppContactHandle object');
        }
        $this->addSessionId();
    }