<?php

declare(strict_types=1);

namespace App\Administration\Application\Port;

use App\Administration\Application\Dto\PaginatedResult;
use App\Administration\Application\Query\GetSubjects\SubjectDto;

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