<?php

namespace App\Modules\ExternalReviewProvider\Application;

use App\Modules\ExternalReviewProvider\Domain\ExternalReviewProviderRepository;
use App\Modules\ExternalReviewProvider\Domain\IdExternalReviewProvider;

class ExternalReviewProviderIndexer
{

    private ExternalReviewProviderRepository $repository;

    public function __construct(ExternalReviewProviderRepository $repository)
    {
        $this->repository = $repository;
    }

    public function __invoke(IdExternalReviewProvider $idExternalReviewProvider)
    {
        return $this->repository->index($idExternalReviewProvider);
    }
}
