MapperService implements MapperService
Table of Contents
Interfaces
Methods
- __construct() : mixed
- filterNotMappedUserIds() : Result|FilterNotMappedUserIdsResult
- getEmployeesWithMultipleVacancy() : Result|GetMultipleVacancyEmployeesResult
- getMappingEntitiesForUnmappedPersons() : GetMappingEntityCollectionResult
- getSuggestForPeople() : GetMatchesForMappingResult
- getSuggestForUsers() : GetMatchesForMappingResult
- listMappedUserIdWithOneEmployeePosition() : array<int, int>
- Get users who has only one employee
Methods
__construct()
public
__construct(CompanyRepository $companyRepository, PersonRepository $personRepository, EmployeeRepository $employeeRepository) : mixed
Parameters
- $companyRepository : CompanyRepository
- $personRepository : PersonRepository
- $employeeRepository : EmployeeRepository
filterNotMappedUserIds()
public
filterNotMappedUserIds(int $companyId, array<int, int> ...$userIds) : Result|FilterNotMappedUserIdsResult
Parameters
- $companyId : int
- $userIds : array<int, int>
Return values
Result|FilterNotMappedUserIdsResultgetEmployeesWithMultipleVacancy()
public
getEmployeesWithMultipleVacancy(int $hcmLinkCompanyId, int ...$userIds) : Result|GetMultipleVacancyEmployeesResult
Parameters
- $hcmLinkCompanyId : int
- $userIds : int
Return values
Result|GetMultipleVacancyEmployeesResultgetMappingEntitiesForUnmappedPersons()
public
getMappingEntitiesForUnmappedPersons(PersonCollection $personCollection) : GetMappingEntityCollectionResult
Parameters
- $personCollection : PersonCollection
Return values
GetMappingEntityCollectionResultgetSuggestForPeople()
public
getSuggestForPeople(array<string|int, mixed> $people, array<string|int, mixed> $excludeIds) : GetMatchesForMappingResult
Parameters
- $people : array<string|int, mixed>
- $excludeIds : array<string|int, mixed>
Return values
GetMatchesForMappingResultgetSuggestForUsers()
public
getSuggestForUsers(int $companyId, array<string|int, mixed> $users) : GetMatchesForMappingResult
Parameters
- $companyId : int
- $users : array<string|int, mixed>
Return values
GetMatchesForMappingResultlistMappedUserIdWithOneEmployeePosition()
Get users who has only one employee
public
listMappedUserIdWithOneEmployeePosition(int $companyId, int ...$userIds) : array<int, int>
Parameters
- $companyId : int
- $userIds : int
Return values
array<int, int> —userId => employeeId