DefaultReadOnlyDepartmentService
in package
implements
ReadOnlyDepartmentServiceInterface
Table of Contents
Interfaces
Methods
- getById() : array<string|int, mixed>|null
- Get by id.
- list() : array<string|int, mixed>
- List all records.
- assertCanView() : void
- Assert that can view.
- formatDepartment() : array<string|int, mixed>
- Format department.
Methods
getById()
Get by id.
public
getById(KmpIdentityInterface $identity, int $id) : array<string|int, mixed>|null
Parameters
- $identity : KmpIdentityInterface
- $id : int
Return values
array<string|int, mixed>|nulllist()
List all records.
public
list(KmpIdentityInterface $identity, array<string|int, mixed> $filters, int $page, int $limit) : array<string|int, mixed>
Parameters
- $identity : KmpIdentityInterface
- $filters : array<string|int, mixed>
- $page : int
- $limit : int
Return values
array<string|int, mixed>assertCanView()
Assert that can view.
protected
assertCanView(KmpIdentityInterface $identity, object $entity) : void
Parameters
- $identity : KmpIdentityInterface
- $entity : object
formatDepartment()
Format department.
protected
formatDepartment(object $row) : array<string|int, mixed>
Parameters
- $row : object