<?php

namespace App\Modules\ExternalUserPassenger\Application;

use App\Modules\ExternalUserPassenger\Domain\ExternalUserPassengerRepository;
use App\Modules\ExternalUserPassenger\Domain\IdExternalUserPassenger;

class ExternalUserPassengerIndexer
{

    private ExternalUserPassengerRepository $repository;

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

    public function __invoke(IdExternalUserPassenger $idExternalUserPassenger)
    {
        return $this->repository->index($idExternalUserPassenger);
    }
}
