<?php

namespace App\Modules\PaxInformation\Application;

use App\Modules\PaxInformation\Domain\IdPaxInformation;
use App\Modules\PaxInformation\Domain\PaxInformationGetBookingTourRepository;

class PaxInformationGetBookingTour {

    private PaxInformationGetBookingTourRepository $repository;

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

    public function __invoke (IdPaxInformation $token) {
        return $this->repository->getBookingTour($token);
    }
}