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;
}
}