public static function validate($data) { if (empty($data['domain']) || empty($data['bulletin']) || empty($data['type'])) { throw new Exception('oSRS Error - Domain/Bulletin/Type required'); } return true; }