<?php

declare(strict_types=1);

namespace App\Administration\Application\Port;

use App\Administration\Application\Dto\PaginatedResult;
use App\Administration\Application\Query\GetAllAssignments\AssignmentWithNamesDto;

/**
 * Read-model port for paginated assignment queries (CQRS read side).
 *
 * @phpstan-type Result = PaginatedResult<AssignmentWithNamesDto>
 */
interface PaginatedAssignmentsReader
{
    /**
     * @return PaginatedResult<AssignmentWithNamesDto>
     */
    public function findPaginated(
        string $tenantId,
        ?string $search,
        int $page,
        int $limit,
    ): PaginatedResult;
}
