public static function validate($data) { if (empty($data['job'])) { throw new Exception('oSRS Error - Job required'); } return true; }