<?php

namespace MGModule\DNSManager2\mgLibs\custom\dns\record\type;

class MG extends RecordTypeAbstract {
    /**
     * A <domain-name> which specifies a mailbox which is a member of the mail group specified by the domain name.
     */
    public $mgmname;
    /**
     * @param string $mgmname valid domain name
     * @return bool
     */
    public function mgmnameValidate($mgmname){
        return filter_var($mgmname,FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME);
    }
}