Metaregistrar\EPP\eppContactHandle::__construct PHP Method

__construct() public method

public __construct ( string $contactHandle, string $contactType = null )
$contactHandle string
$contactType string
    public function __construct($contactHandle, $contactType = null)
    {
        $this->setContactHandle($contactHandle);
        if ($contactType) {
            $this->setContactType($contactType);
        }
        if ($contactType != null && $contactType != self::CONTACT_TYPE_ADMIN && $contactType != self::CONTACT_TYPE_REGISTRANT && $contactType != self::CONTACT_TYPE_BILLING && $contactType != self::CONTACT_TYPE_TECH) {
            throw new eppException('Invalid contact type: ' . $contactType);
        }
    }