Metaregistrar\EPP\dnsbeEppUpdateContactRequest::__construct PHP Method

__construct() public method

dnsbeEppUpdateContactRequest constructor.
public __construct ( $objectname, null | eppContact $addinfo = null, null | eppContact $removeinfo = null, null | eppContact $updateinfo = null, string $language = 'en' )
$objectname
$addinfo null | eppContact
$removeinfo null | eppContact
$updateinfo null | eppContact
$language string
    function __construct($objectname, $addinfo = null, $removeinfo = null, $updateinfo = null, $language = 'en')
    {
        if ($updateinfo instanceof eppContact) {
            parent::__construct($objectname, $addinfo, $removeinfo, $updateinfo);
            $this->addDnsbeExtension($language);
        } else {
            throw new eppException('DNSBE needs $updateinfo to be an eppContact for this update request');
        }
        $this->addSessionId();
    }
dnsbeEppUpdateContactRequest