opensrs\OMA\PostCompanyBulletin::validate PHP Method

validate() public static method

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