- Add single-line class docblocks to all 59 repository classes and interfaces describing scope and responsibility - Add multi-line docblocks to key services documenting business rules: AuthService (6-step login cascade), ImportService (3-phase CSV workflow), TenantScopeService (strict/permissive modes), PermissionService (RBAC resolution + two-tier caching), UserAccountService (atomicity + audit) - Add transaction(callable) wrapper to DatabaseSessionRepository to DRY up begin/commit/rollback boilerplate Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
641 B
PHP
28 lines
641 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Repository\Tenant;
|
|
|
|
/** Contract for tenant CRUD and filtered listing. */
|
|
interface TenantRepositoryInterface
|
|
{
|
|
public function list(): array;
|
|
|
|
public function listIds(): array;
|
|
|
|
public function listByIds(array $tenantIds): array;
|
|
|
|
public function listActiveIdsByIds(array $tenantIds): array;
|
|
|
|
public function listPaged(array $options): array;
|
|
|
|
public function find(int $id): ?array;
|
|
|
|
public function findByUuid(string $uuid): ?array;
|
|
|
|
public function create(array $data): mixed;
|
|
|
|
public function update(int $id, array $data): bool;
|
|
|
|
public function delete(int $id): bool;
|
|
}
|