EmployeeRepository
Table of Contents
Methods
-
add()
: Employee
-
deleteById()
: Result
-
getByIds()
: EmployeeCollection
-
getByPersonId()
: EmployeeCollection
-
getByPersonIds()
: EmployeeCollection
-
getByUnique()
: Employee|null
-
getCollectionByPersonIds()
: EmployeeCollection
-
getSeveralByPersonIds()
: EmployeeCollection
-
hasSeveralByPersonIds()
: bool
-
listMappedUserIdWithOneEmployeePosition()
: array<string|int, mixed>
-
save()
: Employee
-
update()
: Employee
add()
public
add(Employee $employee) : Employee
Parameters
-
$employee
: Employee
-
deleteById()
public
deleteById(int $id) : Result
Parameters
-
$id
: int
-
getByIds()
public
getByIds(array<string|int, mixed> $ids) : EmployeeCollection
Parameters
-
$ids
: array<string|int, mixed>
-
getByPersonId()
public
getByPersonId(int $personId) : EmployeeCollection
Parameters
-
$personId
: int
-
getByPersonIds()
public
getByPersonIds(array<int, int> $personIds) : EmployeeCollection
Parameters
-
$personIds
: array<int, int>
-
getByUnique()
public
getByUnique(int $companyId, string $code) : Employee|null
Parameters
-
$companyId
: int
-
-
$code
: string
-
getCollectionByPersonIds()
public
getCollectionByPersonIds(array<string|int, mixed> $personIds, int|null $limit) : EmployeeCollection
Parameters
-
$personIds
: array<string|int, mixed>
-
-
$limit
: int|null
-
getSeveralByPersonIds()
public
getSeveralByPersonIds(array<string|int, mixed> $personIds) : EmployeeCollection
Parameters
-
$personIds
: array<string|int, mixed>
-
hasSeveralByPersonIds()
public
hasSeveralByPersonIds(array<string|int, mixed> $personIds) : bool
Parameters
-
$personIds
: array<string|int, mixed>
-
listMappedUserIdWithOneEmployeePosition()
public
listMappedUserIdWithOneEmployeePosition(int $companyId, int ...$userIds) : array<string|int, mixed>
Parameters
-
$companyId
: int
-
-
$userIds
: int
-
Return values
array<string|int, mixed>
save()
public
save(Employee $item) : Employee
Parameters
-
$item
: Employee
-
update()
public
update(Employee $employee) : Employee
Parameters
-
$employee
: Employee
-