opensrs\OMA\PostDomainBulletin::validate PHP Method

validate() public static method

Valdation rule here
public static validate ( $data )
    public static function validate($data)
    {
        if (empty($data['domain']) || empty($data['bulletin']) || empty($data['type'])) {
            throw new Exception('oSRS Error - Domain/Bulletin/Type required');
        } else {
            if (!in_array(strtolower($data['type']), array('auto', 'manual'))) {
                throw new Exception('oSRS Error - Type supports auto or manual only');
            } else {
                return true;
            }
        }
    }
PostDomainBulletin