/** * Story 4: * As an employee, I want to be able to contact my managers, by seeing manager contact information for my shifts. * @param $userID * @return array * @throws Exception */ public function getManagersByEmployeeID($userID) { $this->setEmployeeAccess(); $shifts = $this->getShiftsByEmployeeID($userID); $managerIDs = []; foreach ($shifts as $shift) { $managerIDs[] = $shift['manager_id']; } $managers = $this->userModel->getUsersByIds($managerIDs); return $managers; }