{"size": 535, "ext": "js", "max_stars_repo_path": "lib/Engineer.js", "max_stars_repo_name": "daveholst/team-profile-generator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/Engineer.js", "max_issues_repo_name": "daveholst/team-profile-generator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/Engineer.js", "max_forks_repo_name": "daveholst/team-profile-generator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.3181818182, "max_line_length": 79, "alphanum_fraction": 0.6598130841}
// import Employee to extend
const Employee = require('./Employee.js');

class Engineer extends Employee {
  constructor(name, id, email, gitHubUserName) {
    super(name, id, email);
    if (gitHubUserName === undefined) {
      throw Error('Please  include a GitHub User Name when adding a Engineer');
    }
    if (typeof gitHubUserName !== 'string') {
      throw Error('GitHub Username Must be a String');
    }
    this.gitHubUserName = gitHubUserName;
  }

  getRole() {
    return 'Engineer';
  }
}

module.exports = Engineer;
