<?php

namespace App\Modules\Provider\Application\PassengerDistribution;

use App\Modules\Provider\Domain\PassengerDistributionCount;
use App\Modules\Provider\Domain\ProviderRepository;

class ProviderPassengerDistributionSearcherCount
{
    public function __construct(
        private ProviderRepository $providerRepository
    ) {}

    public function __invoke($idTypeProvider, $search, $tourTypeId, $providersWithData, $dateStart, $dateEnd)
    {
        return $this->providerRepository->search(new PassengerDistributionCount($idTypeProvider, $search, $tourTypeId, $providersWithData, $dateStart, $dateEnd));
    }
}
