17 lines
469 B
PHP
17 lines
469 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MintyPHP\Repository\Org;
|
||
|
|
|
||
|
|
interface UserDepartmentRepositoryInterface
|
||
|
|
{
|
||
|
|
public function listDepartmentIdsByUserId(int $userId): array;
|
||
|
|
|
||
|
|
public function replaceForUser(int $userId, array $departmentIds): bool;
|
||
|
|
|
||
|
|
public function removeInvalidForDepartment(int $departmentId): int;
|
||
|
|
|
||
|
|
public function countUsersByDepartmentIds(array $departmentIds): array;
|
||
|
|
|
||
|
|
public function countActiveUsersByDepartmentIds(array $departmentIds): array;
|
||
|
|
}
|