Get employee

@param string $employeeId
@return Employee
425216
public function getEmployee($employeeId)
    {
        $result = null;
        $this->addHeader();
        try {
            $employee = $this->getSoap()->GetAcsEmployee([
                'id' => $employeeId
            ]);
            if (isset($employee->GetAcsEmployeeResult)) {
                $result = new Employee((array)$employee->GetAcsEmployeeResult);
            }
        } catch (\SoapFault $ex) {
            $result = false;
            $this->logError();
        }
        return $result;
    }
325744
protected function fetchUserData($userId)
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->select(
                $this->connection->quoteIdentifier('usr.contentobject_id'),
                $this->connection->quoteIdentifier('usr.login'),
                $this->connection->quoteIdentifier('usr.email'),
                $this->connection->quoteIdentifier('usr.password_hash'),
                $this->connection->quoteIdentifier('usr.password_hash_type')
            )
            ->from($this->connection->quoteIdentifier(self::USER_TABLE), 'usr')
            ->where(
                $query->expr()->eq(
                    $this->connection->quoteIdentifier('usr.contentobject_id'),
                    ':userId'
                )
            )
            ->setParameter(':userId', $userId, PDO::PARAM_INT)
        ;

        $statement = $query->execute();

        $rows = $statement->fetchAll(PDO::FETCH_ASSOC);

        return isset($rows[0]) ? $this->convertColumnsToProperties($rows[0]) : [];
    }
568052
public function assignedPolicies($employeeId)
    {
        $this->bamboo->options['version'] = 'v1_1';

        $response = $this->get("employees/{$employeeId}/time_off/policies");

        $this->bamboo->options['version'] = 'v1';

        return $response;
    }
1012429
public function getEmployees()
  {
    $employees = array();

    $this->Employee->byOrganization($this->AuthenticationManager->getCurrentUserOrganizationId())->each(function($Employee) use (&$employees)
    {
      array_push($employees, array('label'=> $Employee->names  . ' ' . $Employee->surnames , 'value'=>$Employee->id));
    });

    return $employees;
  }
935915
public static function find($workerId)
	{
		if(!self::exists($workerId) || false === strpos($workerId, ":")) {
			return false;
		}

		list($hostname, $pid, $queues) = explode(':', $workerId, 3);
		$queues = explode(',', $queues);
		$worker = new self($queues);
		$worker->setId($workerId);
		return $worker;
	}
201384
public function get($id)
    {
        $data = $this->execute(
            self::HTTP_GET,
            self::DOMUSERP_API_PEDIDOVENDA . '/empresas/' . $this->companyId . '/filiais/' . $id
        );

        return $data;
    }
832026
public function findByUserId($userId)
    {
        $select = $this->getSelect();
        $select->where(array('user_id' => $userId));

        return $this->select($select);
    }
383610
public function get($clientId)
    {
        if (!isset($this->clients[$clientId])) {
            throw new \RuntimeException('Client with id '.$clientId.' does not exist.');
        }

        return $this->clients[$clientId];
    }
607202
def get_person_by_employee_id(self, employee_id):
        
        if not self.valid_employee_id(employee_id):
            raise InvalidEmployeeID(employee_id)

        url = "{}.json?{}".format(
            PERSON_PREFIX, urlencode({"employee_id": employee_id}))
        response = DAO.getURL(url, {"Accept": "application/json"})

        if response.status != 200:
            raise DataFailureException(url, response.status, response.data)

        # Search does not return a full person resource
        data = json.loads(response.data)
        if not len(data["Persons"]):
            raise DataFailureException(url, 404, "No person found")

        regid = data["Persons"][0]["PersonURI"]["UWRegID"]
        return self.get_person_by_regid(regid)
1278173
public function mfaList($employee_id)
    {
        $result = $this->mfaListInternal([
            'employee_id' => $employee_id,
        ]);
        $statusCode = (int)$result[ 'statusCode' ];

        if ($statusCode === 200) {
            return $this->getResultAsArrayWithoutStatusCode($result);
        }

        $this->reportUnexpectedResponse($result, 1506710703);
    }
231956
public function getById(string $recordId): JsonResponse
    {
        return $this->response->success('OK', $this->service->getUserById($recordId));
    }
959459
protected function getUser($userId = null)
    {
        if ($userId === null) {
            /** @var Token $sessionAuth */
            if ($this->session()->isStarted() && $sessionAuth = $this->session()->get('authentication')) {
                return $sessionAuth->getUser();
            }

            return false;
        }
        /** @var Repository\UsersRepository $repo */
        $repo = $this->storage()->getRepository(Entity\Users::class);

        return $repo->getUser($userId);
    }
607891
public function findRoleNamesByUserId($userId)
    {
        $query = $this->getSqlObject()
            ->select()
            ->join('user_roles', 'user_roles.id = pvt_roles_users.role_id', ['name'])
            ->where(['user_id' => $userId]);

        $results = $this->execute($query)->toArray();

        return Arr::pluck($results, 'name');
    }
635649
public function get($cacheId)
    {
        $firstLevelResult = $this->getFromFirstLevelCache($cacheId);
        if ($firstLevelResult !== null) {
            return $firstLevelResult;
        }

        return $this->secondLevelCache->get($cacheId);
    }
1203041
public function assignPolicy($employeeId, array $policies)
    {
        $this->bamboo->options['version'] = 'v1_1';
        
        $response = $this->put("employees/{$employeeId}/time_off/policies", json_encode($policies));

        $this->bamboo->options['version'] = 'v1';

        return $response;
    }
1002338
public function findRootJobByOwnerIdAndJobName($ownerId, $jobName)
    {
        return $this->createJobQueryBuilder('job')
            ->where('job.ownerId = :ownerId AND job.name = :jobName')
            ->andWhere('job.rootJob is NULL')
            ->setParameter('ownerId', $ownerId)
            ->setParameter('jobName', $jobName)
            ->getQuery()
            ->getOneOrNullResult();
    }
624287
public function getJob($jobId)
    {
        $url = parse_url($this->getBaseUrl());
        return $this->get("https://{$url['host']}/queue/job/{$jobId}")->send()->json();
    }